/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 brzlib/plugins/launchpad/test_lp_service.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 14:47:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521144752-8o6jt0a6xat9g7lm
More renames; commands in output, environment variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    def setUp(self):
33
33
        super(LaunchpadServiceTests, self).setUp()
34
34
        # make sure we have a reproducible standard environment
35
 
        self.overrideEnv('BZR_LP_XMLRPC_URL', None)
 
35
        self.overrideEnv('BRZ_LP_XMLRPC_URL', None)
36
36
 
37
37
    def test_default_service(self):
38
38
        service = LaunchpadService()
72
72
                         str(error))
73
73
 
74
74
    def test_environment_overrides_default(self):
75
 
        os.environ['BZR_LP_XMLRPC_URL'] = 'http://example.com/'
 
75
        os.environ['BRZ_LP_XMLRPC_URL'] = 'http://example.com/'
76
76
        service = LaunchpadService()
77
77
        self.assertEqual('http://example.com/',
78
78
                         service.service_url)
79
79
 
80
80
    def test_environment_overrides_specified_service(self):
81
 
        os.environ['BZR_LP_XMLRPC_URL'] = 'http://example.com/'
 
81
        os.environ['BRZ_LP_XMLRPC_URL'] = 'http://example.com/'
82
82
        service = LaunchpadService(lp_instance='staging')
83
83
        self.assertEqual('http://example.com/',
84
84
                         service.service_url)