dulwich.contrib.test_swift module¶
Tests for dulwich.contrib.swift.
- class dulwich.contrib.test_swift.FakeSwiftConnector(root, conf, store=None)¶
Bases:
object
- create_root()¶
- get_container_objects()¶
- get_object(name, range=None)¶
- get_object_stat(name)¶
- put_object(name, content)¶
- class dulwich.contrib.test_swift.Response(headers={}, status=200, content=None)¶
Bases:
object
- items()¶
- read()¶
- class dulwich.contrib.test_swift.SwiftObjectStoreTests(methodName='runTest')¶
Bases:
ObjectStoreTests
,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.
- class dulwich.contrib.test_swift.TestSwiftConnector(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_create_root()¶
- test_create_root_fails()¶
- test_del_object()¶
- test_del_root()¶
- test_get_container_objects()¶
- test_get_container_objects_fails()¶
- test_get_object()¶
- test_get_object_fails()¶
- test_get_object_stat()¶
- test_get_object_stat_fails()¶
- test_init_connector()¶
- test_put_object()¶
- test_put_object_fails()¶
- test_root_exists()¶
- test_root_not_exists()¶
- class dulwich.contrib.test_swift.TestSwiftInfoRefsContainer(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_init()¶
info/refs does not exists
- test_remove_if_equals()¶
- test_set_if_equals()¶
- class dulwich.contrib.test_swift.TestSwiftRepo(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_init()¶
- test_init_bad_data()¶
- test_init_bare()¶
- test_init_no_data()¶
- test_put_named_file()¶
- dulwich.contrib.test_swift.create_commit(data, marker=b'Default', blob=None)¶
- dulwich.contrib.test_swift.create_commits(length=1, marker=b'Default')¶
- dulwich.contrib.test_swift.create_swift_connector(store={})¶
- dulwich.contrib.test_swift.fake_auth_request_v1(*args, **kwargs)¶
- dulwich.contrib.test_swift.fake_auth_request_v1_error(*args, **kwargs)¶
- dulwich.contrib.test_swift.fake_auth_request_v2(*args, **kwargs)¶