def test_default_start(self):
     now = localized_now().replace(minute=0, second=0, microsecond=0)
     self.assertEqualDatetime(default_start(), now)
 def test_default_end(self):
     self.assertEqualDatetime(
         default_end() - timedelta(hours=DEFAULT_END_DELTA),
         default_start())
Example #3
0
 def test_default_end(self):
     self.assertEqualDatetime(
         default_end() - datetime.timedelta(hours=DEFAULT_END_DELTA),
         default_start())
 def test_default_start(self):
     self.assertEqualDatetime(default_start(), localized_now())
Example #5
0
 def test_default_start(self):
     now = localized_now().replace(minute=0, second=0, microsecond=0)
     self.assertEqualDatetime(default_start(), now)