示例#1
0
 def test_run_subtest_after_testsuite(self):
     mgr = RestrictedTestManager(["foo.bar", "foo.bar.bla"])
     self.assertEquals(None, mgr.should_run_testsuite("foo.bar"))
示例#2
0
 def test_run_nomatch(self):
     mgr = RestrictedTestManager(["foo.bar"])
     self.assertEquals([], mgr.should_run_testsuite("foo.blie.bla"))
示例#3
0
 def test_unused(self):
     mgr = RestrictedTestManager(["foo.bar"])
     self.assertEquals(["foo.bar"], list(mgr.iter_unused()))
示例#4
0
 def test_run_multiple_subtests(self):
     mgr = RestrictedTestManager(["foo.bar.blie", "foo.bar.bla"])
     self.assertEquals(["blie", "bla"], 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"))
 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_unused(self):
     mgr = RestrictedTestManager(["foo.bar"])
     self.assertEquals(["foo.bar"], list(mgr.iter_unused()))