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

Method test_post_upload_files

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

Source from the content-addressed store, hash-verified

1075 "<p>with contents: 'content'</p>")
1076
1077 def test_post_upload_files(self):
1078 app = webtest.TestApp(SingleUploadFileApp())
1079 resp = app.post(
1080 '/',
1081 upload_files=[('file', 'filename', b'content')]
1082 )
1083 resp.mustcontain("<p>You selected 'filename'</p>",
1084 "<p>with contents: 'content'</p>")
1085
1086 def test_post_upload_empty_files(self):
1087 app = webtest.TestApp(SingleUploadFileApp())

Callers

nothing calls this directly

Calls 3

postMethod · 0.95
SingleUploadFileAppClass · 0.85
mustcontainMethod · 0.80

Tested by

no test coverage detected