Пример #1
0
 def test_load_by_id_bad_id(self):
     with pytest.raises(ValueError):
         bad_id = League.load_by_id("00000000-0000-0000-0000-000000000000")
Пример #2
0
 def test_load_by_id(self):
     league = League.load_by_id("d8545021-e9fc-48a3-af74-48685950a183")
     assert isinstance(league, League)