Пример #1
0
 def test_equals_8(self):
     self.assertEqual(given_nth_value(self.list_1, -1, 'max'),
                      'Incorrect value for k')
Пример #2
0
 def test_equals_9(self):
     self.assertEqual(given_nth_value(self.list_1, 'string', 2),
                      'Incorrect value for k')
Пример #3
0
 def test_equals_6(self):
     self.assertEqual(given_nth_value(self.list_3, 2, 'mix'),
                      'Valid entries: \'max\' or \'min\'')
Пример #4
0
 def test_equals_7(self):
     self.assertEqual(given_nth_value(self.list_3, 2, 'MaX'), 22)
Пример #5
0
 def test_equals_5(self):
     self.assertEqual(given_nth_value([], 4, 'max'),
                      'No values in the array')
Пример #6
0
 def test_equals_4(self):
     self.assertEqual(given_nth_value(self.list_2, 4, 'max'),
                      'Invalid entry list')
Пример #7
0
 def test_equals_3(self):
     self.assertEqual(given_nth_value(self.list_1, 13, 'max'), 'No way')
Пример #8
0
 def test_equals_2(self):
     self.assertEqual(given_nth_value(self.list_1, 6, 'max'), 6)
Пример #9
0
 def test_equals(self):
     self.assertEqual(given_nth_value(self.list_1, 5, 'min'), 4)