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