~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_selftest.py

  • Committer: Aaron Bentley
  • Date: 2008-09-20 20:35:02 UTC
  • mfrom: (3717 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3720.
  • Revision ID: aaron@aaronbentley.com-20080920203502-mdw6o6gtbalyo2bb
Merge with bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
572
572
 
573
573
class TestSelftestStartingWith(TestCase):
574
574
 
575
 
    def test_starting_with(self):
 
575
    def test_starting_with_single_argument(self):
576
576
        out, err = self.run_bzr(
577
577
            ['selftest', '--starting-with', self.id(), '--list'])
578
578
        self.assertContainsRe(out, "Listed 1 test in")
579
579
        self.assertContainsRe(out, self.id())
580
580
 
 
581
    def test_starting_with_multiple_argument(self):
 
582
        out, err = self.run_bzr(
 
583
            ['selftest',
 
584
             '--starting-with', self.id(),
 
585
             '--starting-with', 'bzrlib.tests.test_sampler',
 
586
             '--list'])
 
587
        self.assertContainsRe(out, "Listed 2 tests in")
 
588
        self.assertContainsRe(out, self.id())
 
589
        self.assertContainsRe(out, 'bzrlib.tests.test_sampler')