upload.tests module

class upload.tests.ThumbnailTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

assertValidPng(png)[source]
test_empty_pdf()[source]
test_invalid_pdf()[source]
test_valid_pdf()[source]
test_wrong_file_format(*args, **kwargs)[source]
thumbnail(fname)[source]
class upload.tests.UploadTest(methodName='runTest')[source]

Bases: papers.testajax.JsonRenderingTest

download(url)[source]
setUp()[source]
classmethod setUpClass()[source]
test_check_method()[source]
test_download()[source]
test_html_download()[source]
test_invalid_format()[source]
test_invalid_url()[source]
test_logged_out()[source]
test_loggedout_download()[source]
test_notfound_url()[source]
test_timeout()[source]
test_valid_upload()[source]
upload(fname)[source]