def test_04_Loc(self):
     l_ret = astralUtil().calc_solar_times(self.m_pyhouse_obj, T_DATE_3)
     # print('B1-04-A - Sun Rise', l_ret.SunRise)
     # print('B1-04-B - Sun Set', l_ret.SunSet)
     self.assertEqual(l_ret.SunRise.hour, T_SUNRISE_3.hour)
     self.assertApproximates(l_ret.SunRise.minute, T_SUNRISE_3.minute, 1)
     self.assertEqual(l_ret.SunSet.hour, T_SUNSET_3.hour)
     self.assertApproximates(l_ret.SunSet.minute, T_SUNSET_3.minute, 1)
 def test_05_Loc(self):
     """ Nearly the shortest day of the year.
     Also, Standard time.
     """
     l_ret = astralUtil().calc_solar_times(self.m_pyhouse_obj, T_DATE_4)
     # print('Sun Rise', l_ret.SunRise)
     # print('Sun Set', l_ret.SunSet)
     self.assertEqual(l_ret.SunRise.hour, T_SUNRISE_4.hour)
     self.assertApproximates(l_ret.SunRise.minute, T_SUNRISE_4.minute, 1)
     self.assertEqual(l_ret.SunSet.hour, T_SUNSET_4.hour)
     self.assertApproximates(l_ret.SunSet.minute, T_SUNSET_4.minute, 1)
 def test_01_Date_0(self):
     l_ret = astralUtil().calc_solar_times(self.m_pyhouse_obj,
                                           TESTING_SCHEDULE_DATE_0)
     # print('B1-01-A - Dawn', l_ret.Dawn)
     # print('B1-01-B - Sun Rise', l_ret.SunRise)
     # print('B1-01-C - Noon', l_ret.Noon)
     # print('B1-01-D - Sun Set', l_ret.SunSet)
     # print('B1-01-E - Dusk', l_ret.Dusk)
     self.assertEqual(l_ret.Dawn.hour, TESTING_SCHEDULE_DAWN_0.hour)
     self.assertApproximates(l_ret.Dawn.minute,
                             TESTING_SCHEDULE_DAWN_0.minute, 1)
     self.assertEqual(l_ret.SunRise.hour, TESTING_SCHEDULE_SUNRISE_0.hour)
     self.assertApproximates(l_ret.SunRise.minute,
                             TESTING_SCHEDULE_SUNRISE_0.minute, 1)
     self.assertEqual(l_ret.Noon.hour, TESTING_SCHEDULE_NOON_0.hour)
     self.assertApproximates(l_ret.Noon.minute,
                             TESTING_SCHEDULE_NOON_0.minute, 1)
     self.assertEqual(l_ret.SunSet.hour, TESTING_SCHEDULE_SUNSET_0.hour)
     self.assertApproximates(l_ret.SunSet.minute,
                             TESTING_SCHEDULE_SUNSET_0.minute, 1)
     self.assertEqual(l_ret.Dusk.hour, TESTING_SCHEDULE_DUSK_0.hour)
     self.assertApproximates(l_ret.Dusk.minute,
                             TESTING_SCHEDULE_DUSK_0.minute, 1)
 def test_01_Loc(self):
     l_now = astralUtil().get_seconds_to_recalc()
 def test_01_Loc(self):
     l_delay = astralUtil()._till_next()