mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Drop test_fail()
This commit is contained in:
parent
d1beedadbd
commit
a336f09157
|
@ -143,12 +143,7 @@ class Form(forms.Form):
|
|||
|
||||
class TestFormParser(TestCase):
|
||||
def setUp(self):
|
||||
self.string = "field1=abc&field2=defghijk"
|
||||
|
||||
def test_fail(self):
|
||||
""" Demonstrate that `parse_qs` fails on forms """
|
||||
data = parse_qs(self.string, keep_blank_values=True)
|
||||
self.assertEqual(Form(data).is_valid(), False)
|
||||
self.string = "field1=abc&field2=defghijk"
|
||||
|
||||
def test_parse(self):
|
||||
""" Make sure the `QueryDict` works OK """
|
||||
|
|
Loading…
Reference in New Issue
Block a user