/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_branch/test_parent.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
import sys
19
19
 
20
 
import bzrlib.errors
21
 
from bzrlib.osutils import getcwd
22
 
from bzrlib.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 bzrlib 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(bzrlib.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(bzrlib.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':