-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_genesis.py
27 lines (20 loc) · 1.06 KB
/
test_genesis.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
import unittest
import genesis
class TestGenesis(unittest.TestCase):
def test_login(self):
project = genesis.Project(debug=True)
self.assertEqual(project.login('http://rukia/api', 'aadesada', 'eaxum'), 'Aderemi Adesada')
self.assertEqual(project.login('http://rukia/api', 'aadesad', 'eaxum') ,
'Login failure, Wrong credentials. pls check login details or host')
self.assertEqual(project.login('http://rukia/api', 'aadesada', 'eaxu'),
'Login failure, Wrong credentials. pls check login details or host')
self.assertEqual(project.login('http://rukia/ap', 'aadesada', 'eaxum'),
'invalid host url')
self.assertEqual(project.login('http//rukia/api', 'aadesada', 'eaxum'),
'bad schema or bad connection')
self.assertEqual(project.login('http:/rukia/api', 'aadesada', 'eaxum'),
'invalid host url')
def test_file_gen(self):
pass
if __name__ == '__main__':
unittest.main()