improve unit test of bluffing

This commit is contained in:
Jannes Höke 2016-05-27 14:02:22 +02:00
parent 569850fade
commit b8e8a7e5de

View file

@ -138,6 +138,7 @@ class Test(unittest.TestCase):
def test_bluffing(self):
p = Player(self.game, "Player 0")
Player(self.game, "Player 01")
self.game.last_card = c.Card(c.RED, '1')
@ -156,4 +157,8 @@ class Test(unittest.TestCase):
c.Card(None, None, c.CHOOSE)]
p.playable_cards()
self.assertFalse(p.bluffing)
p.play(c.Card(None, None, c.DRAW_FOUR))
self.game.choose_color(c.GREEN)
self.assertFalse(self.game.current_player.prev.bluffing)