testing.unit.test_globmatch module
- class testing.unit.test_globmatch.TestDoubleAsterisk(methodName='runTest')[source]
Bases:
UnitTestCase
Test glob matching where the glob finishes with a **
- class testing.unit.test_globmatch.TestGlobToRegex(methodName='runTest')[source]
Bases:
UnitTestCase
Test translation of glob strings into regular expressions
- class testing.unit.test_globmatch.TestSelectValuesFromGlobs(methodName='runTest')[source]
Bases:
UnitTestCase
Test the select values returned from various globs
- class testing.unit.test_globmatch.TestSimpleUnicode(methodName='runTest')[source]
Bases:
UnitTestCase
Test simple unicode comparison
- class testing.unit.test_globmatch.TestSquareBrackets(methodName='runTest')[source]
Bases:
UnitTestCase
Test glob matching where the glob includes []s and [!]s
- class testing.unit.test_globmatch.TestTrailingSlash(methodName='runTest')[source]
Bases:
UnitTestCase
Test glob matching where the glob has a trailing slash
- test_included_files_are_matched_no_slash()[source]
Test that files within an included folder are matched
- test_included_files_are_matched_no_slash_2()[source]
Test that files within an included folder are matched
- test_included_files_are_matched_slash()[source]
Test that files within an included folder are matched with /
- test_included_files_are_matched_slash_2()[source]
Test that files within an included folder are matched with /
- test_included_files_are_matched_slash_2_parents()[source]
Test that duplicity will scan parent of glob/
- test_included_files_are_matched_slash_wildcard()[source]
Test that files within an included folder are matched with /
- testing.unit.test_globmatch.exc_sel_dir(glob_str, file_path)[source]
Returns result of sel_dir with include value set to 0
- testing.unit.test_globmatch.exc_sel_file(glob_str, file_path)[source]
Returns result of sel_file with include value set to 0
- testing.unit.test_globmatch.inc_sel_dir(glob_str, file_path)[source]
Returns result of sel_dir with include value set to 1
- testing.unit.test_globmatch.inc_sel_file(glob_str, file_path)[source]
Returns result of sel_file with include value set to 1
- testing.unit.test_globmatch.sel_dir(glob_str, include, file_path)[source]
As per sel_file, but mocks file_path to be a directory
- testing.unit.test_globmatch.sel_file(glob_str, include, file_path)[source]
Returns the selection value for file_path, given the include value, returning: 0 - if the file should be excluded 1 - if the file should be included 2 - if the folder should be scanned for any included/excluded files None - if the selection function has nothing to say about the file
Note: including a folder implicitly includes everything within it.