aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/parsers.py
diff options
context:
space:
mode:
authorTom Christie2012-02-25 19:02:26 +0000
committerTom Christie2012-02-25 19:02:26 +0000
commit44b5d6120341c5fb90a0b3022d09f9ad78d9f836 (patch)
tree7c814bb0f01372d48c88300a71535e82b981a241 /djangorestframework/tests/parsers.py
parent1cde31c86d9423e9b7a7409c2ef2ba7c0500e47f (diff)
downloaddjango-rest-framework-44b5d6120341c5fb90a0b3022d09f9ad78d9f836.tar.bz2
Fix broken tests
Diffstat (limited to 'djangorestframework/tests/parsers.py')
-rw-r--r--djangorestframework/tests/parsers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/djangorestframework/tests/parsers.py b/djangorestframework/tests/parsers.py
index 0f36cece..c733d9d0 100644
--- a/djangorestframework/tests/parsers.py
+++ b/djangorestframework/tests/parsers.py
@@ -150,7 +150,7 @@ class TestFormParser(TestCase):
def test_parse(self):
""" Make sure the `QueryDict` works OK """
- parser = FormParser(None)
+ parser = FormParser()
stream = StringIO(self.string)
(data, files) = parser.parse(stream, {}, [])
@@ -202,11 +202,11 @@ class TestXMLParser(TestCase):
}
def test_parse(self):
- parser = XMLParser(None)
- (data, files) = parser.parse(self._input)
+ parser = XMLParser()
+ (data, files) = parser.parse(self._input, {}, [])
self.assertEqual(data, self._data)
def test_complex_data_parse(self):
- parser = XMLParser(None)
- (data, files) = parser.parse(self._complex_data_input)
+ parser = XMLParser()
+ (data, files) = parser.parse(self._complex_data_input, {}, [])
self.assertEqual(data, self._complex_data)