コード例 #1
0
ファイル: test_brightness.py プロジェクト: munnik/ShipControl
 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
コード例 #2
0
ファイル: test_brightness.py プロジェクト: munnik/ShipControl
 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
コード例 #3
0
ファイル: test_brightness.py プロジェクト: munnik/ShipControl
 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
コード例 #4
0
ファイル: test_brightness.py プロジェクト: munnik/ShipControl
 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