tests.regex_tests package¶
Submodules¶
tests.regex_tests.groupparse_test module¶
- class tests.regex_tests.groupparse_test.GroupParseTestCase(methodName='runTest')¶
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- group_list_test()¶
Test a list of possible group-name (GID) values with the group parsing regex.
Tests are in the form of: (string, match.groups() tuple)
tests.regex_tests.hostname_test module¶
- class tests.regex_tests.hostname_test.HostnameRegexTestCase(methodName='runTest')¶
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- hostname_test()¶
tests.regex_tests.iscsi_name_test module¶
- class tests.regex_tests.iscsi_name_test.iSCSIeuinameRegexTestCase(methodName='runTest')¶
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- euiname_test()¶
- class tests.regex_tests.iscsi_name_test.iSCSIiqnnameRegexTestCase(methodName='runTest')¶
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- iqnname_test()¶
tests.regex_tests.repo_name_test module¶
tests.regex_tests.url_test module¶
- class tests.regex_tests.url_test.URLRegexTestCase(methodName='runTest')¶
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- url_regex_test()¶
Run a list of possible URL values through the regex and check for correct results.
tests are in the form of: (URL string, match.groups() tuple)
tests.regex_tests.username_test module¶
- class tests.regex_tests.username_test.UsernameRegexTestCase(methodName='runTest')¶
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- gecos_test()¶
Test a list of possible Full Name values.
- grouplist_simple_test()¶
- username_test()¶
Test a list of possible username values.