Beispiel #1
0
 def test_parse_from_environ(self):
     parser = FormDataParser()
     stream, _, _ = parser.parse_from_environ({"wsgi.input": ""})
     assert stream is not None
Beispiel #2
0
 def test_parse_from_environ(self):
     parser = FormDataParser()
     stream, _, _ = parser.parse_from_environ({'wsgi.input': ''})
     assert stream is not None
 def test_parse_bad_content_type(self):
     parser = FormDataParser()
     assert parser.parse('', 'bad-mime-type', 0) == \
         ('', MultiDict([]), MultiDict([]))
Beispiel #4
0
 def test_parse_bad_content_type(self):
     parser = FormDataParser()
     assert parser.parse('', 'bad-mime-type', 0) == \
         ('', MultiDict([]), MultiDict([]))