1154
1155
self.build_tree_contents([('a', 'contents of a\n'),
1155
1156
('b', 'contents of b\n'),])
1156
1157
self.old_factory = ui.ui_factory
1157
1160
self.addCleanup(self.restoreUIFactory)
1159
1162
def restoreUIFactory(self):
1160
1163
ui.ui_factory = self.old_factory
1162
1166
def get_user_url(self, user=None, password=None):
1163
1167
"""Build an url embedding user and password"""