bug_hub.tests.models package
bug_hub.tests.models Submodules
bug_hub.tests.models.test_bug_model module
This module contains unit tests for validating the bug report model of the Bug Hub application.
- class bug_hub.tests.models.test_bug_model.BugModelTestCase(methodName='runTest')[source]
Bases:
TestCaseTest case for the Bug model.
- test_bug_description_length()[source]
Verify that a Bug instance can be saved with a very long ‘description.’
- test_bug_listing()[source]
Verify that a list of Bug instances can be retrieved, and it contains the expected bugs.
- test_bug_title_max_length()[source]
Verify that a Bug instance cannot be saved with a very long ‘title.’
- test_bug_title_min_length()[source]
Verify that a Bug instance cannot be saved with a very short ‘title.’