~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

Make interreop parametrized tests IDs unique.

* bzrlib/tests/test_selftest.py:
(TestInterRepositoryProviderAdapter.test_adapted_tests): Update
with the new IDs.

* bzrlib/tests/interrepository_implementations/__init__.py:
(InterRepositoryTestProviderAdapter.formats_to_scenarios):
Provides unique ids for tests to help defect localization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
        formats = [(str, "C1", "C2"), (int, "D1", "D2")]
377
377
        adapter = InterRepositoryTestProviderAdapter(server1, server2, formats)
378
378
        self.assertEqual([
379
 
            ('str',
 
379
            ('str,str,str',
380
380
             {'interrepo_class': str,
381
381
              'repository_format': 'C1',
382
382
              'repository_format_to': 'C2',
383
383
              'transport_readonly_server': 'b',
384
384
              'transport_server': 'a'}),
385
 
            ('int',
 
385
            ('int,str,str',
386
386
             {'interrepo_class': int,
387
387
              'repository_format': 'D1',
388
388
              'repository_format_to': 'D2',