include.py 420 B

123456789101112131415
  1. import unittest
  2. class TestImport(unittest.TestCase):
  3. def test_get_cookies(self):
  4. from g4f import get_cookies as get_cookies_alias
  5. from g4f.cookies import get_cookies
  6. self.assertEqual(get_cookies_alias, get_cookies)
  7. def test_requests(self):
  8. from g4f.requests import StreamSession
  9. self.assertIsInstance(StreamSession, type)
  10. if __name__ == '__main__':
  11. unittest.main()