TestParseHelpers¶
-
class
tests.test_parse.
TestParseHelpers
(methodName='runTest')[source]¶ Test the parsing functions parse_csv and parse_keyval
-
__init__
(methodName='runTest') 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.
-
Methods¶
Methods
Test that a single value still returns a list |
|
Test csv parsing with excess outer whitespace, and value whitespace |
|
Test env_bool returns False boolean with valid env var |
|
Test env_bool returns True boolean with valid env var |
|
Test env_bool returns default with non-existant env var |
|
Test that a clean key:val csv is parsed correctly |
|
Test that a clean key:val csv with custom split characters is parsed correctly (pipe for kv, semi-colon for pair separation) |
|
Test key:val csv parsing with excess outer/value whitespace, and custom split characters. |
|
Test that a single value still returns a list |
|
Test key:val csv parsing with excess outer whitespace, and value whitespace |