Example #1
0
 def test_server_unavailable(self):
     levels_dict = get_levels_list(self.url)
     self.assertEqual(self.levels_dict_local, levels_dict, 'Levels list in library are not as default.')
Example #2
0
 def test_server_available(self):
     levels_dict = get_levels_list(self.url)
     levels_list_from_server = json.loads(requests.get(os.path.join(self.url + "/api/level/")).content)
     self.assertEqual(levels_list_from_server, levels_dict, 'Server unavailable.')