/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/launchpad/test_lp_directory.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import os
20
20
import xmlrpclib
21
21
 
22
 
import brzlib
23
 
from brzlib import (
 
22
import breezy
 
23
from breezy import (
24
24
    debug,
25
25
    errors,
26
26
    tests,
27
27
    transport,
28
28
    )
29
 
from brzlib.branch import Branch
30
 
from brzlib.directory_service import directories
31
 
from brzlib.tests import (
 
29
from breezy.branch import Branch
 
30
from breezy.directory_service import directories
 
31
from breezy.tests import (
32
32
    features,
33
33
    ssl_certs,
34
34
    TestCaseInTempDir,
35
35
    TestCaseWithMemoryTransport
36
36
)
37
 
from brzlib.plugins.launchpad import (
 
37
from breezy.plugins.launchpad import (
38
38
    _register_directory,
39
39
    lp_registration,
40
40
    )
41
 
from brzlib.plugins.launchpad.lp_directory import (
 
41
from breezy.plugins.launchpad.lp_directory import (
42
42
    LaunchpadDirectory)
43
 
from brzlib.plugins.launchpad.account import get_lp_login, set_lp_login
44
 
from brzlib.tests import http_server
 
43
from breezy.plugins.launchpad.account import get_lp_login, set_lp_login
 
44
from breezy.tests import http_server
45
45
 
46
46
 
47
47
def load_tests(standard_tests, module, loader):
440
440
 
441
441
 
442
442
if features.HTTPSServerFeature.available():
443
 
    from brzlib.tests import https_server
 
443
    from breezy.tests import https_server
444
444
    class PreCannedHTTPSServer(PreCannedServerMixin, https_server.HTTPSServer):
445
445
        pass
446
446
 
461
461
        # FIXME: There should be a better way but the only alternative I can
462
462
        # think of involves carrying the ca_certs through the lp_registration
463
463
        # infrastructure to _urllib2_wrappers... -- vila 2012-01-20
464
 
        brzlib.global_state.cmdline_overrides._from_cmdline(
 
464
        breezy.global_state.cmdline_overrides._from_cmdline(
465
465
            ['ssl.ca_certs=%s' % ssl_certs.build_path('ca.crt')])
466
466
 
467
467
    def set_canned_response(self, server, path):