test_web module¶
- class test_web.BasicTests(methodName='runTest')¶
Bases:
unittest.case.TestCase
Unit and Integration Test of Webservice
- __module__ = 'test_web'¶
- setUp()¶
Set up web app for the test, create temporary folder for operating on test pictures
- tearDown()¶
tear down web app for the test, remove temporary folder for operating on test pictures
- test_colorize()¶
Unit Test of the fail situation of colorizing pictures
- test_delete()¶
Unit Test of the fail situation of deleting pictures
- test_integration_image()¶
- Integration Test on the
upload images colorize images delete images check return urls of images
- test_integration_video()¶
- Integration Test on the
upload videos colorize videos delete videos check return urls of videos
- test_main_page()¶
Test the availability of main page of web application
- test_upload()¶
Unit Test of the fail situation of uploading pictures or videos