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

Method test_goto_upload_files

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

Source from the content-addressed store, hash-verified

1064 )
1065
1066 def test_goto_upload_files(self):
1067 app = webtest.TestApp(SingleUploadFileApp())
1068 resp = app.get('/')
1069 resp = resp.goto(
1070 '/',
1071 method='post',
1072 upload_files=[('file', 'filename', b'content')]
1073 )
1074 resp.mustcontain("<p>You selected 'filename'</p>",
1075 "<p>with contents: 'content'</p>")
1076
1077 def test_post_upload_files(self):
1078 app = webtest.TestApp(SingleUploadFileApp())

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
SingleUploadFileAppClass · 0.85
gotoMethod · 0.80
mustcontainMethod · 0.80

Tested by

no test coverage detected