示例#1
0
 def test_two_pair(self):
     poker = Poker()
     poker.new_game(('S2', 'D2', 'H3', 'C3', 'C5'))
     assert poker.two_pair() == (2, 3)
     poker.new_game(('SA', 'D2', 'H3', 'C3', 'C5'))
     assert poker.two_pair() is None
示例#2
0
 def test_two_pair(self):
     poker = Poker()
     poker.new_game(("S2", "D2", "H3", "C3", "C5"))
     assert poker.two_pair() == (2, 3)
     poker.new_game(("SA", "D2", "H3", "C3", "C5"))
     assert poker.two_pair() is None