예제 #1
0
    def test_util_clear_index(self):
        try:
            ghi_data = np.asarray(
                [0, 0])  # Don't know what ghi_data is supposed to be
            util.clear_index(ghi_data, self.lat, self.lon, self.aware)
        except NoTimeZoneInfoError:
            self.fail("""'NoTimeZoneInfoError' should not be raised \
as 'datetime' object is tz-aware.""")
예제 #2
0
 def test_util_clear_index_raise_error(self):
     with self.assertRaises(NoTimeZoneInfoError):
         ghi_data = np.asarray(
             [0, 0])  # Don't know what ghi_data is supposed to be
         util.clear_index(ghi_data, self.lat, self.lon, self.unaware)