summaryrefslogtreecommitdiff
path: root/tests/test_client/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client/tests.py')
-rw-r--r--tests/test_client/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py
index 042633ad54..1a6a453d04 100644
--- a/tests/test_client/tests.py
+++ b/tests/test_client/tests.py
@@ -156,7 +156,9 @@ class ClientTest(TestCase):
def test_raw_post(self):
"POST raw data (with a content type) to a view"
- test_doc = """<?xml version="1.0" encoding="utf-8"?><library><book><title>Blink</title><author>Malcolm Gladwell</author></book></library>"""
+ test_doc = """<?xml version="1.0" encoding="utf-8"?>
+ <library><book><title>Blink</title><author>Malcolm Gladwell</author></book></library>
+ """
response = self.client.post("/raw_post_view/", test_doc,
content_type="text/xml")
self.assertEqual(response.status_code, 200)