def test_any_status_is(self):
     self.assertTrue(
         weather.any_status_is(self.__test_weathers, "sun",
                               self.__test_registry))
     self.assertFalse(
         weather.any_status_is(self.__test_weathers, "storm",
                               self.__test_registry))
Example #2
0
    def will_have_clouds(self):
        """
        Tells if into the forecast coverage exist one or more *Weather* items
        related to cloud conditions

        :returns: boolean

        """
        return weather.any_status_is(self.forecast.weathers, "clouds",
                                     self._wc_registry)
Example #3
0
    def will_have_hurricane(self):
        """
        Tells if into the forecast coverage exist one or more *Weather* items
        related to hurricanes

        :returns: boolean

        """
        return weather.any_status_is(self.forecast.weathers, "hurricane",
                                     self._wc_registry)