blob: c2a5f6ba570ffca4e02606ef876808083ef73f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import pytest
import unittest
import sys
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()
|