144
144
return newbranch.bzrdir
147
class StubWithFormat(object):
148
"""A stub object used to check that convenience methods call Inter's."""
153
class StubMatchingInter(object):
154
"""An inter for tests.
156
This is not a subclass of InterBranch so that missing methods are caught
157
and added rather than actually trying to do something.
162
def __init__(self, source, target):
167
def is_compatible(klass, source, target):
168
return StubWithFormat._format in (source._format, target._format)
170
def copy_content_into(self, *args, **kwargs):
171
self.__class__._uses.append(
172
(self, 'copy_content_into', args, kwargs))
147
175
def load_tests(standard_tests, module, loader):
148
176
submod_tests = loader.loadTestsFromModuleNames([
177
'bzrlib.tests.per_interbranch.test_get',
178
'bzrlib.tests.per_interbranch.test_copy_content_into',
149
179
'bzrlib.tests.per_interbranch.test_pull',
150
180
'bzrlib.tests.per_interbranch.test_push',
151
181
'bzrlib.tests.per_interbranch.test_update_revisions',