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_csv_single()

Test that a single value still returns a list

test_csv_spaced()

Test csv parsing with excess outer whitespace, and value whitespace

test_env_bool_false()

Test env_bool returns False boolean with valid env var

test_env_bool_true()

Test env_bool returns True boolean with valid env var

test_env_nonexist_bool()

Test env_bool returns default with non-existant env var

test_kval_clean()

Test that a clean key:val csv is parsed correctly

test_kval_custom_clean()

Test that a clean key:val csv with custom split characters is parsed correctly (pipe for kv, semi-colon for pair separation)

test_kval_custom_spaced()

Test key:val csv parsing with excess outer/value whitespace, and custom split characters.

test_kval_single()

Test that a single value still returns a list

test_kval_spaced()

Test key:val csv parsing with excess outer whitespace, and value whitespace

Attributes

Attributes