def test_4_kind_suits(self): poker = Poker() poker.new_game(['S5', 'S9', 'SA', 'S2', 'C3']) assert poker.kind(4, 'suits') == 'S'
def test_4_kind(self): poker = Poker() poker.new_game(['S5', 'D5', 'H5', 'C5', 'C3']) assert poker.kind(4) == 5 poker.new_game(['S5', 'D5', 'CK', 'C5', 'C3']) assert poker.kind(4) is None
def test_3_kind(self): poker = Poker() poker.new_game(['S5', 'D5', 'H5', 'C2', 'C3']) assert poker.kind(3) == 5 poker.new_game(['SA', 'D5', 'H5', 'C2', 'C3']) assert poker.kind(3) is None
def test_4_kind_suits(self): poker = Poker() poker.new_game(["S5", "S9", "SA", "S2", "C3"]) assert poker.kind(4, "suits") == "S"
def test_4_kind(self): poker = Poker() poker.new_game(["S5", "D5", "H5", "C5", "C3"]) assert poker.kind(4) == 5 poker.new_game(["S5", "D5", "CK", "C5", "C3"]) assert poker.kind(4) is None
def test_3_kind(self): poker = Poker() poker.new_game(["S5", "D5", "H5", "C2", "C3"]) assert poker.kind(3) == 5 poker.new_game(["SA", "D5", "H5", "C2", "C3"]) assert poker.kind(3) is None