Пример #1
0
 def test_load_one_at_time_bad_id(self):
     bad_player = Player.load_one_at_time("00000000-0000-0000-0000-000000000000", time="2020-08-01T18:00:00Z")
     assert bad_player is None
Пример #2
0
 def test_load_one_at_time_bad_time(self):
     bad_time = Player.load_one_at_time("d97835fd-2e92-4698-8900-1f5abea0a3b6", time="1980-01-01T00:00:00Z")
     assert bad_time is None
Пример #3
0
 def test_load_one_at_time(self):
     player = Player.load_one_at_time("d97835fd-2e92-4698-8900-1f5abea0a3b6", time="2020-08-01T18:00:00Z")
     assert isinstance(player, Player)