/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/tests/per_branch/test_parent.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:
17
17
 
18
18
import sys
19
19
 
20
 
import brzlib.errors
21
 
from brzlib.osutils import getcwd
22
 
from brzlib.tests import (
 
20
import breezy.errors
 
21
from breezy.osutils import getcwd
 
22
from breezy.tests import (
23
23
    TestCaseWithTransport,
24
24
    TestNotApplicable,
25
25
    TestSkipped,
26
26
    )
27
 
from brzlib import urlutils
 
27
from breezy import urlutils
28
28
 
29
29
 
30
30
"""Tests for Branch parent URL"""
59
59
        self.assertEqual(path, b.get_parent())
60
60
 
61
61
 
62
 
        self.assertRaises(brzlib.errors.InvalidURL, b.set_parent, u'\xb5')
 
62
        self.assertRaises(breezy.errors.InvalidURL, b.set_parent, u'\xb5')
63
63
        b.set_parent(urlutils.escape(u'\xb5'))
64
64
        self.assertEqual('%C2%B5', b._get_parent_location())
65
65
 
90
90
        b.unlock()
91
91
 
92
92
        # With an invalid branch parent, just return None
93
 
        self.assertRaises(brzlib.errors.InaccessibleParent, b.get_parent)
 
93
        self.assertRaises(breezy.errors.InaccessibleParent, b.get_parent)
94
94
 
95
95
    def test_win32_set_parent_on_another_drive(self):
96
96
        if sys.platform != 'win32':