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

Method test_upload_without_file

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

Source from the content-addressed store, hash-verified

928 app.get('/').forms["file_upload_form"].upload_fields()
929
930 def test_upload_without_file(self):
931 app = webtest.TestApp(SingleUploadFileApp())
932 upload_form = app.get('/').forms["file_upload_form"]
933 upload_form.submit()
934
935 def test_file_upload_with_filename_only(self):
936 uploaded_file_name = os.path.join(os.path.dirname(__file__),

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
SingleUploadFileAppClass · 0.85
submitMethod · 0.80

Tested by

no test coverage detected