dulwich.tests.test_config module

Tests for reading and writing configuration files.

class dulwich.tests.test_config.ApplyInsteadOfTests(methodName='runTest')

Bases: TestCase

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.

test_apply()
test_apply_multiple()
test_none()
class dulwich.tests.test_config.CheckSectionNameTests(methodName='runTest')

Bases: TestCase

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.

test_invalid()
test_valid()
class dulwich.tests.test_config.CheckVariableNameTests(methodName='runTest')

Bases: TestCase

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.

test_invalid()
test_valid()
class dulwich.tests.test_config.ConfigDictTests(methodName='runTest')

Bases: TestCase

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.

test_dict()
test_get_boolean()
test_get_set()
test_items()
test_items_nonexistant()
test_sections()
class dulwich.tests.test_config.ConfigFileTests(methodName='runTest')

Bases: TestCase

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.

from_file(text)
test_closing_bracket_within_section_string()
test_comment_after_section()
test_comment_after_variable()
test_comment_before_section()
test_comment_character_within_section_string()
test_comment_character_within_value_string()
test_default_config()
test_empty()
test_empty_line_before_section()
test_eq()
test_from_file_empty()
test_from_file_multiple()
test_from_file_section()
test_from_file_section_case_insensitive_lower()
test_from_file_section_case_insensitive_mixed()
test_from_file_section_with_open_brackets()
test_from_file_subsection()
test_from_file_subsection_invalid()
test_from_file_subsection_not_quoted()
test_from_file_utf8_bom()
test_from_file_value_with_open_quoted()
test_from_file_with_boolean_setting()
test_from_file_with_interrupted_line()
test_from_file_with_mixed_quoted()
test_from_file_with_quotes()
test_quoted()
test_quoted_multiline()
test_quoted_newlines_windows()
test_same_line()
test_set_hash_gets_quoted()
test_write_preserve_multivar()
test_write_to_file_empty()
test_write_to_file_section()
test_write_to_file_subsection()
class dulwich.tests.test_config.EscapeValueTests(methodName='runTest')

Bases: TestCase

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.

test_backslash()
test_newline()
test_nothing()
class dulwich.tests.test_config.FormatStringTests(methodName='runTest')

Bases: TestCase

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.

test_not_quoted()
test_quoted()
class dulwich.tests.test_config.ParseStringTests(methodName='runTest')

Bases: TestCase

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.

test_newline()
test_not_quoted()
test_nothing()
test_quote()
test_quoted()
test_tab()
class dulwich.tests.test_config.StackedConfigTests(methodName='runTest')

Bases: TestCase

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.

test_default_backends()
test_windows_config_from_path()
test_windows_config_from_reg()
class dulwich.tests.test_config.SubmodulesTests(methodName='runTest')

Bases: TestCase

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.

testSubmodules()