Skip to content

Commit

Permalink
Merge pull request #164 from dpnova/fix/bad-web-unit-test
Browse files Browse the repository at this point in the history
Fix test that was using unorderable datetime format.
  • Loading branch information
fiorix committed Oct 1, 2015
2 parents 4ed95b1 + ae2c0be commit 8f8a7e1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cyclone/tests/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,8 @@ def test_set_cookie_expires_days(self):
self.rh.set_cookie("name", "value", expires_days=5, max_age=55)
expires = self.rh._new_cookie["name"]['expires']
self.assertTrue(
expires >
email.utils.formatdate(
calendar.timegm(time.gmtime()),
localtime=False,
usegmt=True
)
email.utils.parsedate(expires) >
time.gmtime(),
)

def test_clear_cookie(self):
Expand Down

0 comments on commit 8f8a7e1

Please sign in to comment.