def test_error_for_conversion_formula(self): """Test that a type error occurs if an int is not passed""" with self.assertRaises(TypeError): main.conversion_formula('25') main.conversion_formula(['numbers', '12', '5', '2']) main.conversion_formula({'you': 'get', 'the': 'jist'})
def test_conversion_formula(self): """Test formula actually converts from Celsius to Farenheight""" self.assertEqual(main.conversion_formula(27), 80.6)