Ejemplo n.º 1
0
 def test_1(self):
     list1 = [1, 2, 3, 4, 5]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))
Ejemplo n.º 2
0
 def test_10(self):
     list1 = [0]
     self.assertEqual(numbers_pair_sum.find_pair(list1, 8),
                      "List must have at leas 2 elements")
Ejemplo n.º 3
0
 def test_12(self):
     list1 = [1, 2]
     self.assertEqual(numbers_pair_sum.find_pair(list1, [1, 2, 3]),
                      "Second argument must be the int")
Ejemplo n.º 4
0
 def test_9(self):
     notList = "Test"
     self.assertEqual(numbers_pair_sum.find_pair(notList, 8),
                      "First argument must be list")
Ejemplo n.º 5
0
 def test_8(self):
     list1 = [0, 8]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))
Ejemplo n.º 6
0
 def test_7(self):
     list1 = [-1, 1, 4, 4, 1, 20]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))
Ejemplo n.º 7
0
 def test_5(self):
     list1 = [1, 1, 1, 1, 1, 22]
     self.assertFalse(numbers_pair_sum.find_pair(list1, 8))
Ejemplo n.º 8
0
 def test_2(self):
     list1 = [7, 2, 3, 4, 4]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))