def test_moisture_change(self): havana = City("Havana", 25, 70) helsinki = City("Helsinki", -10, 50) havana.change_moisture(100) self.assertEqual(havana.get_moisture() - helsinki.get_moisture(), 50)
def test_return_type_2(self): havana = City("Havana", 25, 70) self.assertEqual(int, type(havana.get_moisture()))
def test_moisture(self): havana = City("Havana", 25, 70) self.assertEqual(havana.get_moisture(), 70)