177
178
def look_up(self, name, url):
179
180
return target_branch.base.rstrip('/')
182
183
directories.remove('lp:')
183
184
directories.register('lp:', FooService, 'Map lp URLs to local urls')
184
186
self.addCleanup(lambda: directories.remove('lp:'))
185
187
transport = get_transport('lp:///apt')
186
188
branch = Branch.open_from_transport(transport)