Esempio n. 1
0
 def test_return_type_4(self):
     havana = City("Havana", 25, 70)
     self.assertEqual(int, type(havana.get_temperature_in_kelvins()))
Esempio n. 2
0
 def test_temperature_in_kelvin(self):
     havana = City("Havana", 25, 70)
     self.assertEqual(
         havana.get_temperature_in_kelvins(),
         cs.get_kelvin_from_celsius(havana.get_temperature_in_celsius()))