83
85
# Force the relative path to be something invalid
84
86
# This should attempt to go outside the filesystem
85
87
path = ('../'*(n_dirs+5)) + 'foo'
86
89
b._set_parent_location(path)
88
92
# With an invalid branch parent, just return None
89
93
self.assertRaises(bzrlib.errors.InaccessibleParent, b.get_parent)