def test_flush(self): poker = Poker() poker.new_game(['S6', 'S2', 'S3', 'S4', 'S5']) assert poker.is_flush() == True poker.new_game(['S6', 'S2', 'S3', 'S4', 'H5']) assert poker.is_flush() == False
def test_flush(self): poker = Poker() poker.new_game(["S6", "S2", "S3", "S4", "S5"]) assert poker.is_flush() == True poker.new_game(["S6", "S2", "S3", "S4", "H5"]) assert poker.is_flush() == False