dulwich.tests.test_index module

Tests for the index.

class dulwich.tests.test_index.BuildIndexTests(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.

assertFileContents(path, contents, symlink=False)
assertReasonableIndexEntry(index_entry, mode, filesize, sha)
test_empty()
test_git_dir()
test_git_submodule()
test_git_submodule_exists()
test_no_decode_encode()
test_nonempty()
test_norewrite()
class dulwich.tests.test_index.CleanupModeTests(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.

assertModeEqual(expected, got)
test_dir()
test_executable()
test_file()
test_submodule()
class dulwich.tests.test_index.CommitTreeTests(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.

setUp()

Hook method for setting up the test fixture before exercising it.

test_nested()
test_single_blob()
class dulwich.tests.test_index.GetUnstagedChangesTests(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_get_unstaged_changes()

Unit test for get_unstaged_changes.

test_get_unstaged_changes_removed_replaced_by_directory()

Unit test for get_unstaged_changes.

Unit test for get_unstaged_changes.

test_get_unstaged_deleted_changes()

Unit test for get_unstaged_changes.

class dulwich.tests.test_index.IndexEntryFromStatTests(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_override_mode()
test_simple()
class dulwich.tests.test_index.IndexTestCase(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.

datadir = '/code/dulwich/dulwich/tests/../../testdata/indexes'
get_simple_index(name)
class dulwich.tests.test_index.ReadIndexDictTests(methodName='runTest')

Bases: IndexTestCase

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.

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_simple_write()
class dulwich.tests.test_index.SimpleIndexTestCase(methodName='runTest')

Bases: IndexTestCase

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_against_empty_tree()
test_empty()
test_getitem()
test_iter()
test_iterobjects()
test_len()
class dulwich.tests.test_index.SimpleIndexWriterTestCase(methodName='runTest')

Bases: IndexTestCase

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.

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_simple_write()
class dulwich.tests.test_index.TestTreeFSPathConversion(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_fs_to_tree_path_bytes()
test_fs_to_tree_path_str()
test_tree_to_fs_path()
class dulwich.tests.test_index.TestValidatePathElement(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()
test_ntfs()
class dulwich.tests.test_index.WriteCacheTimeTests(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_write_float()
test_write_int()
test_write_string()
test_write_tuple()

Return whether running process can create symlinks.