def test_dawn(self): assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 7, 1, 5, 20, 0)) is brightness.DAWN assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 1, 1, 8, 48, 0)) is brightness.DAWN
def test_dusk(self): assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 7, 1, 22, 9, 0)) is brightness.DUSK assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 1, 1, 16, 39, 0)) is brightness.DUSK
def test_night(self): assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 7, 1, 0, 0, 0)) is brightness.NIGHT assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 1, 1, 0, 0, 0)) is brightness.NIGHT
def test_day(self): assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 7, 1, 5, 24, 0)) is brightness.DAY assert brightness.brightness('Amsterdam', at=datetime.datetime(2015, 1, 1, 8, 51, 0)) is brightness.DAY