Armin Ronacher avatar Armin Ronacher committed f4d1fc3

Fixed a typo that broke a test and multiple cookies in test client

Comments (0)

Files changed (2)

tests/test_test.py

     resp = client.get('/')
     assert resp.data == '[]'
     resp = client.get('/')
-    assert resp.data == "[('test1', u'foo,'), ('test2', u'bar')]"
+    assert resp.data == "[('test1', u'foo'), ('test2', u'bar')]"
         for cookie in self:
             cvals.append('%s=%s' % (cookie.name, cookie.value))
         if cvals:
-            environ['HTTP_COOKIE'] = ', '.join(cvals)
+            environ['HTTP_COOKIE'] = '; '.join(cvals)
 
     def extract_wsgi(self, environ, headers):
         """Extract the server's set-cookie headers as cookies into the
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.