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