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