dulwich.tests.test_patch module

Tests for patch.py.

class dulwich.tests.test_patch.DiffTests(methodName='runTest')

Bases: TestCase

Tests for write_blob_diff and write_tree_diff.

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_blob_add()
test_blob_diff()
test_blob_remove()
test_object_diff_add_bin_blob()
test_object_diff_add_blob()
test_object_diff_bin_blob()
test_object_diff_bin_blob_force()
test_object_diff_blob()
test_object_diff_kind_change()
test_object_diff_remove_bin_blob()
test_object_diff_remove_blob()
test_tree_diff()
test_tree_diff_submodule()
class dulwich.tests.test_patch.GetSummaryTests(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_simple()
class dulwich.tests.test_patch.ReadGitAmPatch(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_extract_bytes()
test_extract_mercurial()
test_extract_no_version_tail()
test_extract_pseudo_from_header()
test_extract_spaces()
test_extract_string()
class dulwich.tests.test_patch.WriteCommitPatchTests(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_simple_bytesio()