Example #1
0
 def test_check_win_conditions(self):
     game = Game()
     game.defender.hand = []
     game.attacker.hand = [Card(Suit.CLUBS, Rank.JACK)]
     assert game.check_win_conditions() == (True, game.defender)
Example #2
0
 def test_check_draw_conditions(self):
     game = Game()
     game.defender.hand = []
     game.attacker.hand = []
     assert game.check_win_conditions() == (True, None)