Exemple #1
0
 def test_two_pair_tester_3(self):
     '''testcase normal two_pair
     tp_ranks = [5, 5, 9, 8, 8]
     '''
     tp_ranks = [5, 5, 9, 8, 8]
     actual = poker.twopair(tp_ranks)
     expected = (8,5)
     self.assertEqual (actual,expected)
Exemple #2
0
 def test_two_pair_tester_2(self):
     '''testcase normal one_pair
     op_ranks = [4,3,7,3,6]
     '''
     op_ranks = [4,3,7,3,6]
     actual = poker.twopair(op_ranks)
     expected = ()
     self.assertEqual (actual,expected)
Exemple #3
0
 def test_two_pair_tester_1(self):
     '''testcase high straight
     st_ranks = [11, 10, 9, 8, 7]
     '''
     st_ranks = [11, 10, 9, 8, 7]
     actual = poker.twopair(st_ranks)
     expected = ()
     self.assertEqual (actual,expected)
Exemple #4
0
    def test_twopair_2(self):
        """
        Test twopair with straight hand

        ['4H', '5S', '3D', '6C', '7S']
        """
        st = ['4H', '5S', '3D', '6C', '7S']
        actual = poker.twopair(st)
        expected = False
        self.assertEqual(actual,expected)
Exemple #5
0
    def test_twopair(self):
        """
        Test twopair with twopair hand

        ['5S', '5H', '9D', '8C', '8S']
        """
        tp = ['5S', '5H', '9D', '8C', '8S']
        actual = poker.twopair(tp)
        expected = 5, 8
        self.assertEqual(actual,expected)
Exemple #6
0
	def test_twopair_2(self):
		'''Test twopair with [5, 5, 9, 8, 8]'''
		
		actual = poker.twopair([5, 5, 9, 8, 8])
		expected = (8, 5)
		self.assertEqual(actual, expected)
Exemple #7
0
	def test_twopair_1(self):
		'''Test twopair with [11, 10, 9, 8, 7]'''
		
		actual = poker.twopair([11, 10, 9, 8, 7])
		expected = ()
		self.assertEqual(actual, expected)