Misc fixes

This commit is contained in:
Ludovic Stephan 2019-04-17 20:50:49 +02:00
parent 7717d1ed34
commit 03c74a7940
2 changed files with 1 additions and 3 deletions

View file

@ -202,7 +202,7 @@ class GenericLoginViewTests(TestCase):
cookie = client.cookies[key]
# It also can be emptied.
self.assertEqual(cookie.value, "")
self.assertEqual(cookie["expires"], "Thu, 01-Jan-1970 00:00:00 GMT")
self.assertEqual(cookie["expires"], "Thu, 01 Jan 1970 00:00:00 GMT")
self.assertEqual(cookie["max-age"], 0)
except AssertionError:
raise AssertionError("The cookie '%s' still exists." % key)

View file

@ -107,8 +107,6 @@ class OperationHelpersTest(TestCase):
self.assertDictEqual(
operation_group.__dict__,
{
"_checkout_cache": checkout,
"_on_acc_cache": on_acc,
"_state": mock.ANY,
"amount": 0,
"at": mock.ANY,