dulwich.tests.test_config module

Tests for reading and writing configuration files.

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

Bases: dulwich.tests.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: dulwich.tests.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: dulwich.tests.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_iteritems()
test_iteritems_nonexistant()
test_itersections()
class dulwich.tests.test_config.ConfigFileTests(methodName='runTest')

Bases: dulwich.tests.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_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_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_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_same_line()
test_set_hash_gets_quoted()
test_write_to_file_empty()
test_write_to_file_section()
test_write_to_file_subsection()
class dulwich.tests.test_config.EscapeValueTests(methodName='runTest')

Bases: dulwich.tests.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: dulwich.tests.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: dulwich.tests.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: dulwich.tests.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()
class dulwich.tests.test_config.SubmodulesTests(methodName='runTest')

Bases: dulwich.tests.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()