def test_error_for_convert_to_F(self): """Test that a type error occurs when anything but a list is passed in""" with self.assertRaises(TypeError): main.convert_to_F(5) main.convert_to_F('yayyyyyyy') main.convert_to_F({'this': 'is', 'a': 'dictionary'})
def test_celsius_to_farenheight(self): """Test that a list of temperatures are converted to Farenheight""" self.assertEqual(main.convert_to_F(self.waves), [79.7, 79.16])