gpt4free/etc/unittest/include.py

15 lines
420 B
Python
Raw Normal View History

import unittest
2024-01-21 04:20:23 +03:00
class TestImport(unittest.TestCase):
2024-01-21 04:20:23 +03:00
def test_get_cookies(self):
from g4f import get_cookies as get_cookies_alias
from g4f.cookies import get_cookies
self.assertEqual(get_cookies_alias, get_cookies)
2024-01-21 04:20:23 +03:00
def test_requests(self):
from g4f.requests import StreamSession
self.assertIsInstance(StreamSession, type)
2024-01-21 04:20:23 +03:00
if __name__ == '__main__':
unittest.main()