Conditions | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/python |
||
27 | def test_master_servers_property(self): |
||
28 | """Test the function to retrieve and parse data from the master server |
||
29 | |||
30 | :return: |
||
31 | """ |
||
32 | # assert that we actually got a dictionary |
||
33 | self.assertIsInstance(self.master_servers_module.master_servers, dict) |
||
34 | # check for the keys in the dictionary |
||
35 | self.assertIn('timestamp', self.master_servers_module.master_servers) |
||
36 | self.assertIn('servers', self.master_servers_module.master_servers) |
||
37 | # check length |
||
38 | self.assertEqual(len(self.master_servers_module.master_servers_cfg), |
||
39 | len(self.master_servers_module.master_servers['servers'])) |
||
40 | |||
45 |