def test_isLight_is_true_during_evening_astro_twilight(self):
     sun = Sun("observatory.ini")
     dateTime3 = datetime(2018, 6, 20, 18, 21, 5, 1)
     night = sun.isNight(dateTime3)
     self.assertFalse(night, "should not be night yet")
 def test_isDark_is_true_when_before_midnight(self):
     sun = Sun("observatory.ini")
     dateTime1 = datetime(2018, 6, 20, 19, 21, 5, 1)
     night = sun.isNight(dateTime1)
     self.assertTrue(night, "it is night")
 def test_isDark_is_true_when_after_midnight(self):
     sun = Sun("observatory.ini")
     dateTime2 = datetime(2018, 6, 21, 6, 3, 5, 7777)
     night = sun.isNight(dateTime2)
     self.assertTrue(night, "it is dark in the early morning")
 def test_isLight_is_true_during_morning_astro_twilight(self):
     sun = Sun("observatory.ini")
     # after astronomical twilight
     dateTime3 = datetime(2018, 6, 20, 6, 58, 5, 1)
     night = sun.isNight(dateTime3)
     self.assertFalse(night, "should not be night yet")