Ejemplo n.º 1
0
 def test_getters_return_expected_daily_data(self):
     instance = Forecast("daily", self.__test_reception_time,
                         self.__test_location, self.__test_weathers)
     self.assertEqual(instance.get_interval(), "daily")
     self.assertEqual(instance.get_reception_time(),
                      self.__test_reception_time)
     self.assertEqual(instance.get_location(), self.__test_location)
     self.assertEqual(instance.get_weathers(), self.__test_weathers)
Ejemplo n.º 2
0
 def test_getters_return_expected_daily_data(self):
     instance = Forecast("daily", self.__test_reception_time,
                          self.__test_location, self.__test_weathers)
     self.assertEqual(instance.get_interval(), "daily")
     self.assertEqual(instance.get_reception_time(),
                      self.__test_reception_time)
     self.assertEqual(instance.get_location(), self.__test_location)
     self.assertEqual(instance.get_weathers(), self.__test_weathers)
Ejemplo n.º 3
0
 def test_getters_return_expected_3h_data(self):
     """
     Test either for "3h" forecast and "daily" ones
     """
     instance = Forecast("3h", self.__test_reception_time, self.__test_location, self.__test_weathers)
     self.assertEqual(instance.get_interval(), "3h")
     self.assertEqual(instance.get_reception_time(), self.__test_reception_time)
     self.assertEqual(instance.get_location(), self.__test_location)
     self.assertEqual(instance.get_weathers(), self.__test_weathers)
Ejemplo n.º 4
0
 def test_getters_return_expected_3h_data(self):
     """
     Test either for "3h" forecast and "daily" ones
     """
     instance = Forecast("3h", self.__test_reception_time,
                         self.__test_location, self.__test_weathers)
     self.assertEqual(instance.get_interval(), "3h")
     self.assertEqual(instance.get_reception_time(),
                      self.__test_reception_time)
     self.assertEqual(instance.get_location(), self.__test_location)
     self.assertEqual(instance.get_weathers(), self.__test_weathers)