def test_seconds_with_tzinfo(self): d = Date(timezone=pytz.timezone('Europe/Berlin')) d.parse('19700101') self.assertEqual(-3600, d.seconds())
def test_seconds_from_start_epoch(self): d = Date(timezone=pytz.utc) d.parse('19700101') self.assertEqual(0, d.seconds())