/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-07-25 23:22:30 UTC
  • mfrom: (7374 work)
  • mto: This revision was merged to the branch mainline in revision 7376.
  • Revision ID: jelmer@jelmer.uk-20190725232230-9b4x1nn0m19j1oh0
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        # get_cache_directory returns the path to a directory inside the
84
84
        # Breezy cache directory.
85
85
        from . import lp_api
86
 
        expected_path = osutils.pathjoin(bedding.cache_dir(), 'launchpad')
87
 
        self.assertEqual(expected_path, lp_api.get_cache_directory())
 
86
        try:
 
87
            expected_path = osutils.pathjoin(bedding.cache_dir(), 'launchpad')
 
88
        except EnvironmentError:
 
89
            self.assertRaises(EnvironmentError, lp_api.get_cache_directory)
 
90
        else:
 
91
            self.assertEqual(expected_path, lp_api.get_cache_directory())