def test_fahrenheitToCelsius_forTypeErrorReturn(self): # Capture the results of the function #result = fahrenheitToCelsius("str") # Check for expected output self.assertRaises(TypeError, fahrenheitToCelsius("str"))
def test_fahrenheitToCelsius_for50F(self): # Capture the results of the function result = fahrenheitToCelsius(50) # Check for expected output self.assertEqual(10.0, result)
def test_fahrenheitToCelsius_forTypeError(self): # Capture the results of the function result = fahrenheitToCelsius("str") # Check for expected output self.assertEqual(-9999, result)