dulwich.tests.test_client module

class dulwich.tests.test_client.CheckWantsTests(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_annotated()
test_fine()
test_missing()
class dulwich.tests.test_client.DefaultUrllib3ManagerTest(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_config_no_proxy()
test_config_no_ssl()
test_config_no_verify_ssl()
test_config_proxy()
test_config_ssl()
test_no_config()
class dulwich.tests.test_client.DummyClient(can_read, read, write)

Bases: dulwich.client.TraditionalGitClient

class dulwich.tests.test_client.DummyPopen(*args, **kwards)
communicate(*args, **kwards)
wait(*args, **kwards)
class dulwich.tests.test_client.GitClientTests(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_archive_ack()
test_caps()
test_fetch_empty()
test_fetch_pack_ignores_magic_ref()
test_fetch_pack_none()
test_fetch_pack_sha_not_in_ref()
test_send_pack_delete_only()
test_send_pack_keep_and_delete()
test_send_pack_new_ref()
test_send_pack_new_ref_only()
test_send_pack_no_deleteref_delete_only()
test_send_pack_no_sideband64k_with_update_ref_error()
test_send_pack_none()
class dulwich.tests.test_client.HttpGitClientTests(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.

static b64encode(s)

Python 2/3 compatible Base64 encoder. Returns string.

test_from_parsedurl_on_url_with_quoted_credentials()
test_get_url()
test_get_url_bytes_path()
test_get_url_with_username_and_passwd()
test_init_no_username_passwd()
test_init_username_passwd_set()
class dulwich.tests.test_client.LocalGitClientTests(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.

send_and_verify(branch, local, target)

Send branch from local to remote repository and verify it worked.

test_fetch_empty()
test_fetch_into_empty()
test_fetch_pack_none()
test_get_refs()
test_get_url()
test_send_pack_with_changes()
test_send_pack_without_changes()
class dulwich.tests.test_client.PLinkSSHVendorTests(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.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_run_command_dashes()
test_run_command_password()
test_run_command_password_and_privkey()
test_run_command_with_port_username_and_privkey()
class dulwich.tests.test_client.ReportStatusParserTests(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_invalid_pack()
test_ok()
test_update_refs_error()
class dulwich.tests.test_client.RsyncUrlTests(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_path()
test_simple()
class dulwich.tests.test_client.SSHGitClientTests(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.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_alternative_command_path()
test_alternative_command_path_spaces()
test_connect()
test_default_command()
test_get_url()
test_get_url_with_username_and_port()
class dulwich.tests.test_client.SubprocessSSHVendorTests(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.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_run_command_dashes()
test_run_command_password()
test_run_command_password_and_privkey()
test_run_command_with_port_username_and_privkey()
class dulwich.tests.test_client.TCPGitClientTests(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_url()
test_get_url_with_port()
class dulwich.tests.test_client.TestGetTransportAndPath(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_error()
test_git_ssh_explicit()
test_http()
test_http_auth()
test_http_auth_with_username()
test_http_auth_with_username_and_in_url()
test_http_no_auth()
test_local()
test_local_abs_windows_path(**kwargs)
test_ssh_abspath_doubleslash()
test_ssh_explicit()
test_ssh_host()
test_ssh_host_relpath()
test_ssh_implicit()
test_ssh_port()
test_ssh_port_explicit()
test_ssh_relpath()
test_ssh_user_host()
test_ssh_user_host_relpath()
test_tcp()
test_tcp_port()
test_username_and_port_explicit()
test_username_and_port_explicit_unknown_scheme()
class dulwich.tests.test_client.TestGetTransportAndPathFromUrl(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_error()
test_file()
test_http()
test_http_port()
test_local_path()
test_ssh_explicit()
test_ssh_homepath()
test_ssh_host_relpath()
test_ssh_port_explicit()
test_ssh_port_homepath()
test_ssh_user_host_relpath()
test_tcp()
test_tcp_port()
class dulwich.tests.test_client.TestSSHVendor

Bases: object

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