def test_any_status_is(self): self.assertTrue( weatherutils.any_status_is(self.__test_weathers, "sun", self.__test_registry)) self.assertFalse( weatherutils.any_status_is(self.__test_weathers, "storm", self.__test_registry))
def will_have_clear(self): """ Tells if into the forecast coverage exist one or more *Weather* items related to clear sky conditions :returns: boolean """ return weatherutils.any_status_is(self._forecast.get_weathers(), "sun", weather_code_registry)
def will_have_hurricane(self): """ Tells if into the forecast coverage exist one or more *Weather* items related to hurricanes :returns: boolean """ return weatherutils.any_status_is(self._forecast.get_weathers(), "hurricane", weather_code_registry)
def will_have_clear(self): """ Tells if into the forecast coverage exist one or more *Weather* items related to clear sky conditions :returns: boolean """ return weatherutils.any_status_is(self._forecast.get_weathers(), "sun", weather_code_registry)
def will_have_hurricane(self): """ Tells if into the forecast coverage exist one or more *Weather* items related to hurricanes :returns: boolean """ return weatherutils.any_status_is(self._forecast.get_weathers(), "hurricane", weather_code_registry)
def test_any_status_is(self): self.assertTrue(weatherutils.any_status_is(self.__test_weathers, "sun", self.__test_registry)) self.assertFalse(weatherutils.any_status_is(self.__test_weathers, "storm", self.__test_registry))