/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        self.assertEqual('../yanb', b._get_parent_location())
59
59
        self.assertEqual(path, b.get_parent())
60
60
 
61
 
 
62
61
        self.assertRaises(urlutils.InvalidURL, b.set_parent, u'\xb5')
63
62
        b.set_parent(urlutils.escape(u'\xb5'))
64
63
        self.assertEqual('%C2%B5', b._get_parent_location())
84
83
 
85
84
        # Force the relative path to be something invalid
86
85
        # This should attempt to go outside the filesystem
87
 
        path = ('../'*(n_dirs+5)) + 'foo'
 
86
        path = ('../' * (n_dirs + 5)) + 'foo'
88
87
        b.lock_write()
89
88
        b._set_parent_location(path)
90
89
        b.unlock()