annotations.tests.tests module

class annotations.tests.tests.TestTextFileExtract(methodName='runTest')[source]

Bases: unittest.case.TestCase

This class tests the text file extraction method after the upload file form is submitted.

test_not_a_txt_file()[source]

This method tests if validation error is raised when a non-text file is uploaded

test_text_file()[source]

This method tests if content of the text file are extracted when a text file is uploaded

class annotations.tests.tests.TestUploadFileType(methodName='runTest')[source]

Bases: unittest.case.TestCase

This class tests the validator (to test proper file type - TXT or PDF) used in file upload form.

test_invalid_file()[source]

When file is not a zip file, ValidationError should be raised.

test_txt_file()[source]

When file is a TXT file, no exception should be raised.

class annotations.tests.tests.TextQuadrigaSerialization(methodName='runTest')[source]

Bases: unittest.case.TestCase