dulwich.tests.compat.test_client module

Compatibilty tests between the Dulwich client and the cgit server.

class dulwich.tests.compat.test_client.DulwichClientTestBase

Bases: object

Tests for client/server compatibility.

assertDestEqualsSrc()
compute_send(src)
disable_ff_and_make_dummy_commit()
make_dummy_commit(dest)
setUp()
tearDown()
test_archive()
test_fetch_pack()
test_fetch_pack_depth()
test_fetch_pack_no_side_band_64k()
test_fetch_pack_zero_sha()
test_get_refs()
test_incremental_fetch_pack()
test_repeat()
test_send_pack()
test_send_pack_multiple_errors()
test_send_pack_nothing_to_send()
test_send_pack_one_error()
test_send_remove_branch()
test_send_without_report_status()
class dulwich.tests.compat.test_client.DulwichHttpClientTest(methodName='runTest')

Bases: dulwich.tests.compat.utils.CompatTestCase, dulwich.tests.compat.test_client.DulwichClientTestBase

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.

min_git_version = (1, 7, 0, 2)
setUp()

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

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_archive()
class dulwich.tests.compat.test_client.DulwichMockSSHClientTest(methodName='runTest')

Bases: dulwich.tests.compat.utils.CompatTestCase, dulwich.tests.compat.test_client.DulwichClientTestBase

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.

class dulwich.tests.compat.test_client.DulwichSubprocessClientTest(methodName='runTest')

Bases: dulwich.tests.compat.utils.CompatTestCase, dulwich.tests.compat.test_client.DulwichClientTestBase

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.

class dulwich.tests.compat.test_client.DulwichTCPClientTest(methodName='runTest')

Bases: dulwich.tests.compat.utils.CompatTestCase, dulwich.tests.compat.test_client.DulwichClientTestBase

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.

class dulwich.tests.compat.test_client.GitHTTPRequestHandler(request, client_address, server)

Bases: SimpleHTTPServer.SimpleHTTPRequestHandler

HTTP Request handler that calls out to ‘git http-backend’.

do_GET()
do_POST()
log_request(code='-', size='-')
rbufsize = 0
run_backend()

Call out to git http-backend.

send_head()
class dulwich.tests.compat.test_client.HTTPGitServer(server_address, root_path)

Bases: BaseHTTPServer.HTTPServer

allow_reuse_address = True
get_url()
class dulwich.tests.compat.test_client.TestSSHVendor

Bases: object

static run_command(host, command, username=None, port=None, password=None, key_filename=None)