Create a CookieJar on __init__ instead of creating a new one each post

Fixes #1505
This commit is contained in:
Leonel Câmara
2017-04-03 19:54:06 +01:00
parent ad43249f61
commit fe0f506efc
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class TestWeb(LiveTest):
self.assertTrue('Welcome Homer' in client.text)
client = WebClient('http://127.0.0.1:8000/admin/default/')
client.post('index', data=dict(password='hello'))
client.post('index', data=dict(password='testpass'))
client.get('site')
client.get('design/welcome')