Ejemplo n.º 1
0
    def test_util_global_irradiance_overcast_no_error(self):
        try:
            util.global_irradiance_overcast(self.lat, self.lon, self.aware)
        except NoTimeZoneInfoError:
            self.fail("""'NoTimeZoneInfoError' should not be raised \
as 'datetime' object is tz-aware.""")
Ejemplo n.º 2
0
 def test_util_global_irradiance_overcast_raise_error(self):
     with self.assertRaises(NoTimeZoneInfoError):
         util.global_irradiance_overcast(self.lat, self.lon, self.unaware)