def test_util_direct_underclear_no_error(self): try: util.direct_underclear(self.lat, self.lon, self.aware) except NoTimeZoneInfoError: self.fail("""'NoTimeZoneInfoError' should not be raised \ as 'datetime' object is tz-aware.""")
def test_util_direct_underclear_raise_error(self): with self.assertRaises(NoTimeZoneInfoError): util.direct_underclear(self.lat, self.lon, self.unaware)