Misc fixes
This commit is contained in:
parent
7717d1ed34
commit
03c74a7940
2 changed files with 1 additions and 3 deletions
|
@ -202,7 +202,7 @@ class GenericLoginViewTests(TestCase):
|
||||||
cookie = client.cookies[key]
|
cookie = client.cookies[key]
|
||||||
# It also can be emptied.
|
# It also can be emptied.
|
||||||
self.assertEqual(cookie.value, "")
|
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)
|
self.assertEqual(cookie["max-age"], 0)
|
||||||
except AssertionError:
|
except AssertionError:
|
||||||
raise AssertionError("The cookie '%s' still exists." % key)
|
raise AssertionError("The cookie '%s' still exists." % key)
|
||||||
|
|
|
@ -107,8 +107,6 @@ class OperationHelpersTest(TestCase):
|
||||||
self.assertDictEqual(
|
self.assertDictEqual(
|
||||||
operation_group.__dict__,
|
operation_group.__dict__,
|
||||||
{
|
{
|
||||||
"_checkout_cache": checkout,
|
|
||||||
"_on_acc_cache": on_acc,
|
|
||||||
"_state": mock.ANY,
|
"_state": mock.ANY,
|
||||||
"amount": 0,
|
"amount": 0,
|
||||||
"at": mock.ANY,
|
"at": mock.ANY,
|
||||||
|
|
Loading…
Reference in a new issue