376
376
adapter.formats_to_scenarios(formats))
379
class TestInterVersionedFileProviderAdapter(TestCase):
380
"""A group of tests that test the InterVersionedFile test adapter."""
382
def test_scenarios(self):
383
# check that constructor parameters are passed through to the adapted
385
from bzrlib.tests.interversionedfile_implementations \
386
import InterVersionedFileTestProviderAdapter
389
formats = [(str, "C1", "C2"), (int, "D1", "D2")]
390
adapter = InterVersionedFileTestProviderAdapter(server1, server2, formats)
393
{'interversionedfile_class':str,
394
'transport_readonly_server': 'b',
395
'transport_server': 'a',
396
'versionedfile_factory': 'C1',
397
'versionedfile_factory_to': 'C2'}),
399
{'interversionedfile_class': int,
400
'transport_readonly_server': 'b',
401
'transport_server': 'a',
402
'versionedfile_factory': 'D1',
403
'versionedfile_factory_to': 'D2'})],
407
class TestRevisionStoreProviderAdapter(TestCase):
408
"""A group of tests that test the RevisionStore test adapter."""
410
def test_scenarios(self):
411
# check that constructor parameters are passed through to the adapted
413
from bzrlib.tests.revisionstore_implementations \
414
import RevisionStoreTestProviderAdapter
415
# revision stores need a store factory - i.e. RevisionKnit
416
#, a readonly and rw transport
420
store_factories = ["c", "d"]
421
adapter = RevisionStoreTestProviderAdapter(server1, server2, store_factories)
424
{'store_factory': 'c',
425
'transport_readonly_server': 'b',
426
'transport_server': 'a'}),
428
{'store_factory': 'd',
429
'transport_readonly_server': 'b',
430
'transport_server': 'a'})],
434
379
class TestWorkingTreeProviderAdapter(TestCase):
435
380
"""A group of tests that test the workingtree implementation test adapter."""