(self)
| 1084 | "<p>with contents: 'content'</p>") |
| 1085 | |
| 1086 | def test_post_upload_empty_files(self): |
| 1087 | app = webtest.TestApp(SingleUploadFileApp()) |
| 1088 | resp = app.post( |
| 1089 | '/', |
| 1090 | upload_files=[('file', 'filename', b'')] |
| 1091 | ) |
| 1092 | resp.mustcontain("<p>You selected 'filename'</p>", |
| 1093 | "<p>with contents: ''</p>") |
| 1094 | resp = app.get('/') |
| 1095 | form = resp.form |
| 1096 | form['file-field'] = Upload('filename', b'', 'text/plain') |
| 1097 | resp = form.submit() |
| 1098 | resp.mustcontain("<p>You selected 'filename'</p>", |
| 1099 | "<p>with contents: ''</p>") |
| 1100 | |
| 1101 | def test_multiple_file(self): |
| 1102 | uploaded_file_name_1 = os.path.join(os.path.dirname(__file__), |
nothing calls this directly
no test coverage detected