Пример #1
0
 def test_1(self):
     list1 = [1, 2, 3, 4, 5]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))
Пример #2
0
 def test_10(self):
     list1 = [0]
     self.assertEqual(numbers_pair_sum.find_pair(list1, 8),
                      "List must have at leas 2 elements")
Пример #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")
Пример #4
0
 def test_9(self):
     notList = "Test"
     self.assertEqual(numbers_pair_sum.find_pair(notList, 8),
                      "First argument must be list")
Пример #5
0
 def test_8(self):
     list1 = [0, 8]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))
Пример #6
0
 def test_7(self):
     list1 = [-1, 1, 4, 4, 1, 20]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))
Пример #7
0
 def test_5(self):
     list1 = [1, 1, 1, 1, 1, 22]
     self.assertFalse(numbers_pair_sum.find_pair(list1, 8))
Пример #8
0
 def test_2(self):
     list1 = [7, 2, 3, 4, 4]
     self.assertTrue(numbers_pair_sum.find_pair(list1, 8))