Esempio n. 1
0
 def test_check_knocked(self):
     round1 = Round([Human(1)])
     round1.check_knocked()
     assert round1.last_turn == 1
     round1.knocked = True
     round1.check_knocked()
     assert round1.last_turn == 2
Esempio n. 2
0
 def test_prepare_new_round(self):
     round1 = Round([Human(1)])
     round1.turn = 2
     round1.last_turn = 3
     round1.knocked = True
     round1.prepare_new_round()
     assert round1.turn == 1
     assert round1.last_turn == 1
     assert not round1.knocked
     assert isinstance(round1.deck, Deck)