~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-07 07:27:16 UTC
  • mfrom: (3408.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080507072716-lr54bdt55km4feso
(mbp) Remove code deprecated prior to 1.1 and its tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
                          iter_suite_tests,
66
66
                          preserve_input,
67
67
                          randomize_suite,
68
 
                          sort_suite_by_re,
69
68
                          split_suite_by_re,
70
69
                          test_lsprof,
71
70
                          test_suite,
1824
1823
        # necessarily.)
1825
1824
        self.assertEqual(len(self.all_names), len(_test_ids(randomized_suite)))
1826
1825
 
1827
 
    def test_sort_suite_by_re(self):
1828
 
        sorted_suite = self.applyDeprecated(one_zero,
1829
 
            sort_suite_by_re, self.suite, 'test_filter_suite_by_r')
1830
 
        sorted_names = _test_ids(sorted_suite)
1831
 
        self.assertEqual(sorted_names[0], 'bzrlib.tests.test_selftest.'
1832
 
            'TestSelftestFiltering.test_filter_suite_by_re')
1833
 
        self.assertEquals(sorted(self.all_names), sorted(sorted_names))
1834
 
 
1835
1826
    def test_split_suit_by_re(self):
1836
1827
        self.all_names = _test_ids(self.suite)
1837
1828
        split_suite = split_suite_by_re(self.suite, 'test_filter_suite_by_r')