Пример #1
0
 def test_triangle_with_correct_values(self):
     self.assertEqual(triangle(self.a, self.b), 250)
Пример #2
0
 def test_triangle_with_correct_values(self):
     self.assertEqual(triangle(6, 4), 12)
Пример #3
0
 def test_triangle_with_correct_values(self):
     result = triangle(self.a, self.h)
     self.assertEqual(result, 6)
Пример #4
0
 def test_triangle_with_incorrect_values(self):
     with self.assertRaises(ValueError):
         triangle('***', self.h)
Пример #5
0
 def test_triangle_with_incorrect_value(self):
     with self.assertRaises(ValueError):
         triangle(5, 'aaa')