2024-02-21 23:16:58 +00:00
|
|
|
import unittest
|
2024-01-21 01:20:23 +00:00
|
|
|
|
2024-02-21 23:16:58 +00:00
|
|
|
class TestImport(unittest.TestCase):
|
2024-01-21 01:20:23 +00:00
|
|
|
|
2024-02-21 23:16:58 +00: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 01:20:23 +00:00
|
|
|
|
2024-02-21 23:16:58 +00:00
|
|
|
def test_requests(self):
|
|
|
|
from g4f.requests import StreamSession
|
|
|
|
self.assertIsInstance(StreamSession, type)
|
2024-01-21 01:20:23 +00:00
|
|
|
|
2024-02-21 23:16:58 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|