Esempio n. 1
0
 def test_add_player(self):
     g = Game()
     with pytest.raises(ValueError):
         g.add_player(u"TestPlayer1", "Mr. None")
     g.add_player(u"TestPlayer", u"Mrs. White")
     assert (u"Mrs. White" not in g.get_available_characters())
     with pytest.raises(ValueError):
         g.add_player(u"TestPlayer", u"Mr. Green")
Esempio n. 2
0
 def test_get_available_mobs(self):
     g = Game()
     for itm in clue.cluestatics.get_character_names():
         assert (itm in g.get_available_characters())
     for itm in g.get_available_characters():
         assert (itm in clue.cluestatics.get_character_names())