dulwich.tests.test_objectspec module

Tests for revision spec parsing.

class dulwich.tests.test_objectspec.ParseCommitRangeTests(methodName='runTest')

Bases: TestCase

Test parse_commit_range.

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_commit_by_sha()
test_nonexistent()
class dulwich.tests.test_objectspec.ParseCommitTests(methodName='runTest')

Bases: TestCase

Test parse_commit.

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_commit_by_sha()
test_commit_by_short_sha()
test_nonexistent()
class dulwich.tests.test_objectspec.ParseObjectTests(methodName='runTest')

Bases: TestCase

Test parse_object.

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_by_sha()
test_nonexistent()
class dulwich.tests.test_objectspec.ParseRefTests(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_ambiguous_head()
test_ambiguous_ref()
test_ambiguous_ref2()
test_ambiguous_remote()
test_ambiguous_remote_head()
test_ambiguous_tag()
test_heads_full()
test_heads_partial()
test_nonexistent()
test_tags_partial()
class dulwich.tests.test_objectspec.ParseRefsTests(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_full()
test_head()
test_nonexistent()
class dulwich.tests.test_objectspec.ParseReftupleTests(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_with_string()
test_full()
test_head()
test_no_left_ref()
test_no_right_ref()
test_nonexistent()
class dulwich.tests.test_objectspec.ParseReftuplesTests(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_full()
test_head()
test_nonexistent()
class dulwich.tests.test_objectspec.ParseTreeTests(methodName='runTest')

Bases: TestCase

Test parse_tree.

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_from_commit()
test_from_ref()
test_nonexistent()