def test_isNightAdjusted_is_true_when_morning_dark(self):
        sun = Sun("observatory.ini")
        # just before astronomical twilight starts
        dateTime2 = datetime(2018, 6, 21, 5, 8, 5, 7777)
        # dateTime2 = datetime(2018, 6, 21, 5, 50, 5, 7777, tzinfo=timezone.utc)

        night = sun.isAdjustedNight(dateTime2)
        self.assertTrue(night, "should be night now now")
 def test_isNightAdjusted_when_after_delayDarknessStart(self):
     sun = Sun("observatory.ini")
     dateTime2 = datetime(2018, 6, 20, 19, 21, 5, 1)
     night = sun.isAdjustedNight(dateTime2)
     self.assertTrue(night, "should be night now now")
 def test_isNightAdjusted_when_before_advanceDarknessEnd(self):
     sun = Sun("observatory.ini")
     dateTime2 = datetime(2018, 6, 21, 5, 8, 5, 7777)
     night = sun.isAdjustedNight(dateTime2)
     self.assertTrue(night, "should be night now now")