def test_index_all(self): poker = Poker() poker.new_game(('S2', 'D2', 'H3', 'C3', 'C5')) assert poker.index_all(2) == [0, 1] poker.new_game(('S3', 'D3', 'H3', 'C3', 'C5')) assert poker.index_all(3) == [0, 1, 2, 3] poker.new_game(('SJ', 'D7', 'S8', 'JOKER', 'HJ')) assert poker.index_all('J') == [0, 4]
def test_index_all(self): poker = Poker() poker.new_game(("S2", "D2", "H3", "C3", "C5")) assert poker.index_all(2) == [0, 1] poker.new_game(("S3", "D3", "H3", "C3", "C5")) assert poker.index_all(3) == [0, 1, 2, 3] poker.new_game(("SJ", "D7", "S8", "JOKER", "HJ")) assert poker.index_all("J") == [0, 4]