コード例 #1
0
 def test_get_all_rooms_multiple(self):
     """ Tests getting all rooms with 2 entries"""
     RoomService.create_room('6', 'Bad', 'Double')
     self.assertEqual(len(RoomService.get_all_rooms()), 2)
コード例 #2
0
 def test_get_all_rooms(self):
     """ Tests getting all rooms with 1 entry """
     self.assertEqual(len(RoomService.get_all_rooms()), 1)