tests Package

test_auth Module

class leap.base.tests.test_auth.LeapSRPRegisterTests(methodName='runTest')

Bases: leap.testing.https_server.BaseHTTPSServerTestCase, leap.testing.basetest.BaseLeapTest

provider = 'testprovider.example.org'
class request_handler(request, client_address, server)

Bases: leap.eip.tests.test_checks.NoLogRequestHandler, BaseHTTPServer.BaseHTTPRequestHandler

do_GET()
responses = {'/': ['OK', '']}
LeapSRPRegisterTests.setUp()
LeapSRPRegisterTests.tearDown()
LeapSRPRegisterTests.test_srp_auth_basic_functionality()
LeapSRPRegisterTests.test_srp_auth_should_implement_check_methods()

test_checks Module

class leap.base.tests.test_checks.LeapNetworkCheckTest(methodName='runTest')

Bases: leap.testing.basetest.BaseLeapTest

setUp()
tearDown()
test_check_internet_connection_failures()
test_check_tunnel_default_interface()
test_checker_should_actually_call_all_tests()
test_checker_should_implement_check_methods()
test_get_default_interface_no_interface()
test_parse_log_and_react()
test_ping_gateway()
test_ping_gateway_fail()
leap.base.tests.test_checks.get_ping_timeout_error()

test_config Module

class leap.base.tests.test_config.ConfigHelperFunctions(methodName='runTest')

Bases: leap.testing.basetest.BaseLeapTest

setUp()
tearDown()
test_get_default_provider_path()

is default provider path ok?

test_lin_get_config_dir()

nice config dir? (linux)

test_lin_get_config_file()

config file path where expected? (linux)

test_mac_get_config_dir(*args, **kwargs)

nice config dir? (mac)

test_mac_get_config_file(*args, **kwargs)

config file path where expected? (mac)

test_validate_domain(test_item)
test_validate_ip()

check our ip validation

test_win_get_config_dir(*args, **kwargs)

nice config dir? (win)

test_win_get_config_file(*args, **kwargs)

config file path where expected?

class leap.base.tests.test_config.JSONLeapConfigTest(methodName='runTest')

Bases: leap.testing.basetest.BaseLeapTest

setUp()
tearDown()
test_metaclass()
class leap.base.tests.test_config.ProviderDefinitionTestCase(methodName='runTest')

Bases: leap.base.tests.test_config.ProviderTest

setUp()
class leap.base.tests.test_config.ProviderTest(methodName='runTest')

Bases: leap.testing.basetest.BaseLeapTest

setUp()
tearDown()

test_providers Module

class leap.base.tests.test_providers.TestLeapProviderDefinition(methodName='runTest')

Bases: leap.testing.basetest.BaseLeapTest

setUp()
tearDown()
test_load_malformed_json_definition(test_item)
test_provider_dump()
test_provider_dump_to_slug()
test_provider_load()
test_provider_slug_property()
test_provider_validation()
test_type_validation(test_item)
class leap.base.tests.test_providers.TestLeapProviderSet(methodName='runTest')

Bases: leap.testing.basetest.BaseLeapTest

setUp()
tearDown()
test_count_defined_providers(test_item)
test_get_default_provider(test_item)
test_get_eip_remote_from_default_provider(test_item)
test_get_zero_count()
test_should_be_at_least_one_provider_after_init(test_item)

test_validation Module

class leap.base.tests.test_validation.SampleConfig(*args, **kwargs)

Bases: leap.base.config.JSONLeapConfig

slug
spec

alias of SampleConfigSpec

class leap.base.tests.test_validation.TestJSONLeapConfigValidation(methodName='runTest')

Bases: leap.testing.basetest.BaseLeapTest

setUp()
tearDown()
test_broken_int()
test_format_property()
test_good_validation()

Table Of Contents

Previous topic

base Package

Next topic

baseapp Package

This Page