seqparse.test package
Submodules
seqparse.test.test_files module
Test the File class.
-
class
seqparse.test.test_files.
TestFiles
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test basic functionality on the File class.
-
setUp
()[source]
Set up the test instance.
-
test_initialization
()[source]
File: Test initialization of an instance by file name.
-
test_sorting
()[source]
File: Test instance sorting.
-
test_stat_queries
(*args, **keywargs)[source]
File: Test stat setting and queries.
seqparse.test.test_filesequences module
Test the FrameSequence class.
-
class
seqparse.test.test_filesequences.
TestFileSequences
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test basic functionality on the FileSequence class.
-
setUp
()[source]
Set up the test instance.
-
test_cloning
()[source]
FileSequence: Test cloning from an existing instance.
-
test_discard
()[source]
FileSequence: Test the discard method.
-
test_equality
()[source]
FileSequence: Test the equality of instances.
-
test_file_containment
()[source]
FileSequence: Test if files are contained by a sequence.
-
test_file_name_initialization
()[source]
FileSequence: Test initialization of an instance by file name.
-
test_frame_containment
()[source]
FileSequence: Test if frames are contained by a sequence.
-
test_frame_properties
()[source]
FileSequence: Test frames, pretty_frames properties.
-
test_inversion
()[source]
FileSequence: Test frame inversion (ie, report missing frames).
-
test_iteration
()[source]
FileSequence: Test iteration over an instance.
-
test_output
()[source]
FileSequence: Test string output.
-
test_properties
()[source]
FileSequence: Test getting/setting simple properties.
-
test_stat_queries
(*args, **keywargs)[source]
File: Test stat setting and queries.
-
test_update
()[source]
FileSequence: Test the update method.
seqparse.test.test_framechunks module
Test the FrameChunk class.
-
class
seqparse.test.test_framechunks.
TestFrameChunks
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test basic functionality on the FrameChunk class.
-
bad_bits
= (('0005', '0001', None, 1),)
-
good_bits
= (('0001', None, 1, 1, 1), ('0001', '0005', 1, 1, 5), ('0001', '0005', 2, 1, 3), ('0001', '0005', 2, 2, 3), ('0001', '0005', 3, 1, 2), ('0001', '0005', 3, 2, 2))
-
setUp
()[source]
Set up the test instance.
-
test_chunk_length
()[source]
FrameChunk: Test chunk length (number of included frames).
-
test_containment
()[source]
FrameChunk: Test if a frame is contained by a chunk.
-
test_equality
()[source]
FrameChunk: Test the equality of instances.
-
test_inversion
()[source]
FrameChunk: Test frame inversion (ie, report missing frames).
-
test_iteration
()[source]
FrameChunk: Test iteration over an instance.
seqparse.test.test_framesequences module
Test the FrameSequence class.
-
class
seqparse.test.test_framesequences.
TestFrameSequences
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test basic functionality on the FrameSequence class.
-
setUp
()[source]
Set up the test instance.
-
test_basic_containment
()[source]
FrameSequence: Test basic containment of sequences.
-
test_complex_containment
()[source]
FrameSequence: Test containment of complex sequences.
-
test_equality
()[source]
FrameSequence: Test the equality of instances.
-
test_frame_add
()[source]
FrameSequence: Test the addition of frames of various types.
-
test_initialization
()[source]
FrameSequence: Test initialization of an instance.
-
test_inversion
()[source]
FrameSequence: Test frame inversion (ie, report missing frames).
-
test_iteration
()[source]
FrameSequence: Test iteration over an instance.
-
test_setlike_methods
()[source]
FrameSequence: Test set-like methods.
seqparse.test.test_regex module
Test the regex module.
-
class
seqparse.test.test_regex.
TestSeqparseModule
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test the regex module.
-
setUp
()[source]
Set up the test case.
-
test_bits_match
()[source]
SeqparseRegexMixin: Test the bits_match method.
-
test_file_name_match
()[source]
SeqparseRegexMixin: Test the file_name_match method.
-
test_file_seq_match
()[source]
SeqparseRegexMixin: Test the file_seq_match method.
-
test_is_frame_sequence
()[source]
SeqparseRegexMixin: Test the is_file_sequence method.
seqparse.test.test_seqls module
Tests for the seqls script (seqparse.cli.seqls).
-
class
seqparse.test.test_seqls.
TestSeqls
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test basic functionality on the seqls script.
-
setUp
()[source]
Set up the test instance.
-
test_all_option
(*args, **keywargs)[source]
Seqls: Test the all option.
-
test_long_format_option
(*args, **keywargs)[source]
Seqls: Test the long-format option.
-
test_missing_option
(*args, **keywargs)[source]
Seqls: Test missing option.
-
test_parse_args
()[source]
Seqls: Test seqls argument parsing.
-
test_seqls_with_arguments
(*args, **keywargs)[source]
Seqls: Test seqls with supplied arguments.
-
test_singletons
(*args, **keywargs)[source]
Seqls: Test file singleton discovery from disk location.
seqparse.test.test_seqparse module
Test file sequence discovery on disk.
-
class
seqparse.test.test_seqparse.
TestSeqparseModule
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test file discovery on the seqparse module.
-
setUp
()[source]
Set up the test case.
-
test_add_file_sequence
()[source]
Seqparse: Test file sequence addition via seqparse.add_file.
-
test_api_calls
()[source]
Seqparse: Test API calls at root of module.
-
test_complex_sequence
(*args, **keywargs)[source]
Seqparse: Test complex file sequence discovery.
-
test_inversion
(*args, **keywargs)[source]
Seqparse: Test usage of the “missing” option in Seqparse.output.
-
test_nested_sequences
(*args, **keywargs)[source]
Seqparse: Test file sequence discovery in nested directories.
-
test_scan_options
(*args, **keywargs)[source]
Seqparse: Make sure scan_options works as expected.
-
test_simple_sequence
(*args, **keywargs)[source]
Seqparse: Test simple file sequence discovery.
-
test_single_padded_file
(*args, **keywargs)[source]
Seqparse: Test single padded file sequence discovery.
-
test_singletons
(*args, **keywargs)[source]
Seqparse: Test file singleton discovery from disk location.
-
test_valid_frame_sequences
()[source]
Seqparse: Test validity of simple frame ranges.
Module contents
Test suite for seqparse.
-
class
seqparse.test.
DirEntry
(file_path, is_file=True)[source]
Bases: object
Mocked DirEntry class.
-
is_dir
(follow_symlinks=False)[source]
Whether this instance represents a directory.
-
is_file
(follow_symlinks=False)[source]
Whether this instance represents a file.
-
stat
(follow_symlinks=False)[source]
Return mock’d os.stat object for the given file.
-
seqparse.test.
generate_entries
(name='dog', ext='jpg', frames=None, root='.', is_file=True)[source]
Generate some file sequences for seqparse testing.
-
seqparse.test.
initialise_mock_scandir_data
(search_path)[source]
Initialise the global variable accessed by mock_scandir_deep.
-
seqparse.test.
mock_os_stat
(file_name)[source]
A mock’d version of os.stat for testing purposes.
-
seqparse.test.
mock_scandir_deep
(search_path='.')[source]
A mock’d version of scandir.scandir for testing purposes.