MCPcopy Create free account
hub / github.com/Pylons/webtest / test_invalid_uploadfiles

Method test_invalid_uploadfiles

tests/test_forms.py:1057–1064  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1055 )
1056
1057 def test_invalid_uploadfiles(self):
1058 app = webtest.TestApp(SingleUploadFileApp())
1059 self.assertRaises(ValueError, app.post, '/', upload_files=[()])
1060 self.assertRaises(
1061 ValueError,
1062 app.post, '/',
1063 upload_files=[('name', 'filename', 'content', 'extra')]
1064 )
1065
1066 def test_goto_upload_files(self):
1067 app = webtest.TestApp(SingleUploadFileApp())

Callers

nothing calls this directly

Calls 1

SingleUploadFileAppClass · 0.85

Tested by

no test coverage detected