def test_run_subtest_after_testsuite(self): mgr = RestrictedTestManager(["foo.bar", "foo.bar.bla"]) self.assertEquals(None, mgr.should_run_testsuite("foo.bar"))
def test_run_nomatch(self): mgr = RestrictedTestManager(["foo.bar"]) self.assertEquals([], mgr.should_run_testsuite("foo.blie.bla"))
def test_run_multiple_subtests(self): mgr = RestrictedTestManager(["foo.bar.blie", "foo.bar.bla"]) self.assertEquals(["blie", "bla"], mgr.should_run_testsuite("foo.bar"))