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