dulwich.tests.test_index module

Tests for the index.

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

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(**kwargs)
class dulwich.tests.test_index.CleanupModeTests(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_dir()
test_executable()
test_file()
test_submodule()
class dulwich.tests.test_index.CommitTreeTests(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.

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

datadir = '/tmp/tmp.zVQtNFUywl/dulwich/tests/data/indexes'
get_simple_index(name)
class dulwich.tests.test_index.ReadIndexDictTests(methodName='runTest')

Bases: dulwich.tests.test_index.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: dulwich.tests.test_index.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_iterblobs()
test_iterobjects()
test_len()
class dulwich.tests.test_index.SimpleIndexWriterTestCase(methodName='runTest')

Bases: dulwich.tests.test_index.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: 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_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: 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()
test_ntfs()
class dulwich.tests.test_index.WriteCacheTimeTests(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_write_float()
test_write_int()
test_write_string()
test_write_tuple()

Return whether running process can create symlinks.