/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: 2018-11-17 00:47:52 UTC
  • mfrom: (7182 work)
  • mto: This revision was merged to the branch mainline in revision 7305.
  • Revision ID: jelmer@jelmer.uk-20181117004752-6ywampe5pfywlby4
Merge trunk.

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()