-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtest_connection.py
33 lines (24 loc) · 934 Bytes
/
test_connection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import unittest
import easyaccess as ea
class TestConnection(unittest.TestCase):
def test_connect_dessci(self):
con = ea.connect('dessci', quiet=True)
self.assertTrue(con.ping())
def test_connect_desoper(self):
con = ea.connect('desoper', quiet=True)
self.assertTrue(con.ping())
def test_connect_desdr(self):
con = ea.connect('desdr', quiet=True)
self.assertTrue(con.ping())
@unittest.skip("remove destest from tests")
def test_connect_destest(self):
con = ea.connect('destest', quiet=True)
self.assertTrue(con.ping())
# @unittest.skip("Not implemented yet")
# def test_connect_memsql(self):
# con = ea.connect('memsql')
# self.assertTrue(con)
if __name__ == '__main__':
unittest.main()
# suite = unittest.TestLoader().loadTestsFromTestCase(TestConnection)
# unittest.TextTestRunner(verbosity=2).run(suite)