blob: 8f61d08d0b177bac2ce376c7423bfeb2337d4529 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import pytest
import unittest
import trapd_http_session
class test_init_session_obj(unittest.TestCase):
"""
Test the init_session_obj mod
"""
def test_correct_usage(self):
"""
Test that attempt to create http session object works
"""
result = trapd_http_session.init_session_obj()
compare = str(result).startswith("<requests.sessions.Session object at")
self.assertEqual(compare, True)
if __name__ == '__main__':
unittest.main()
|