tests.parse module

Tests for the data_helper.parse module

class tests.parse.ListFilterTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

parse.list_filter() test cases

classmethod setUpClass()[source]
test_caps_only()[source]

Test a pattern for only capital letters

test_case_i()[source]

Test a case insensitive pattern

test_file_ext()[source]

Test a pattern for matching a file extension ‘.md’

test_has_numbers()[source]

Test a pattern for numbers included

test_wildcard()[source]

Test if a pattern matching any characters returns all

class tests.parse.StrSplitCapsTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

parse.str_split_caps() test cases

test_trim()[source]

Test if whitespace is trimmed

class tests.parse.StrSplitSizeTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

parse.str_split_size() test cases

test_concat_string()[source]

Test if a string concatenated N times is split N times

test_even_length_string()[source]

Test the value and number of elements returned from a string whose length is an even number

test_integer()[source]

Test the value and number of elements returned from an integer

test_odd_length_string()[source]

Test the value and number of elements returned from a string whose length is an odd number