From b8e8a7e5de4837dfcf4ec5194e4204567c2efd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Fri, 27 May 2016 14:02:22 +0200 Subject: [PATCH] improve unit test of bluffing --- test/test_player.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_player.py b/test/test_player.py index 2e516f0..649d115 100644 --- a/test/test_player.py +++ b/test/test_player.py @@ -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)