def test_square_area_for_5length(self): #capture results of MathFunctions result = MathFunctions.areaSquare(5) #Check for expected output expected = 25 self.assertEqual(expected, result)
def test_areaSquare_fraction(self): print("This is test_areaSquare_fraction.") x = 10.1 result = MathFunctions.areaSquare(x) expected = x * x self.assertEqual(expected, result)