def test_error_for_water_temps(self): """Test that a type error occurs when an anyting but a list is passed in""" with self.assertRaises(TypeError): main.water_temps(5) main.wave_temps('this is a test') main.wave_temps({'name': 'test', 'age': 10})
def test_water_temps_displayed(self): """Test that the dates and water temps are converted to floats and returned""" self.assertEqual(main.water_temps(self.waves), [('2015-08-01', 26.5), ('2015-08-02', 26.2)])