/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_api.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        from . import lp_api
82
82
        expected_path = osutils.pathjoin(config.config_dir(), 'launchpad')
83
83
        self.assertEqual(expected_path, lp_api.get_cache_directory())
84
 
 
85
 
 
86
 
class TestLaunchpadMirror(TestCaseWithTransport):
87
 
    """Tests for the 'bzr lp-mirror' command."""
88
 
 
89
 
    # Testing the lp-mirror command is quite hard, since it must talk to a
90
 
    # Launchpad server. Here, we just test that the command exists.
91
 
 
92
 
    _test_needs_features = [launchpadlib_feature]
93
 
 
94
 
    def test_command_exists(self):
95
 
        out, err = self.run_bzr(['launchpad-mirror', '--help'], retcode=0)
96
 
        self.assertEqual('', err)
97
 
 
98
 
    def test_alias_exists(self):
99
 
        out, err = self.run_bzr(['lp-mirror', '--help'], retcode=0)
100
 
        self.assertEqual('', err)