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