def test_sponge_uses_air_pockets(): assert get_winner('Sponge', 'Air') == 'Sponge'
def test_wolf_bites_devils_heiny(): assert get_winner('Wolf', 'Devil') == 'Wolf'
def test_sponge_soaks_paper(): assert get_winner('Sponge', 'Paper') == 'Sponge'
def test_ties(player): assert get_winner(player, player) == 'Tie'
def test_wolf_outruns_dragon_and_lightning(player): assert get_winner('Wolf', player) == 'Wolf'
def test_human_slays_dragon(): assert get_winner('Human', 'Dragon') == 'Human'
def test_wolf_drinks_water(): assert get_winner('Wolf', 'Water') == 'Wolf'
def test_tree_imprisons_devil(): assert get_winner('Tree', 'Devil') == 'Tree'
def test_wolf_chews_up_sponge_and_paper(player): assert get_winner('Wolf', player) == 'Wolf'
def test_tree_produces_air(): assert get_winner('Tree', 'Air') == 'Tree'
def test_tree_drinks_water(): assert get_winner('Tree', 'Water') == 'Tree'
def test_tree_becomes_paper(): assert get_winner('Tree', 'Paper') == 'Tree'
def test_tree_outlives_sponge(): assert get_winner('Tree', 'Sponge') == 'Tree'
def test_tree_shelters_wolf_and_dragon(player): assert get_winner('Tree', player) == 'Tree'
def testCheckingBidAllNone(self) : dice_map = {"a":[1, 2, 3], "b":[1], "c":[1, 4, 2]} self.assertTrue(game.get_winner(dice_map) is None)
def test_wolf_breathes_air(): assert get_winner('Wolf', 'Air') == 'Wolf'
def testCheckingBidOneWin(self) : winner = "a" dice_map = {winner:[1, 2, 3], "b":[], "c":[]} ret = game.get_winner(dice_map) self.assertTrue(ret is not None) self.assertTrue(winner == ret)
def test_human_drinks_water(): assert get_winner('Human', 'Water') == 'Human'