コード例 #1
0
ファイル: test_testlist.py プロジェクト: sYnfo/samba
 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
ファイル: test_testlist.py プロジェクト: sYnfo/samba
 def test_run_nomatch(self):
     mgr = RestrictedTestManager(["foo.bar"])
     self.assertEquals([], mgr.should_run_testsuite("foo.blie.bla"))
コード例 #3
0
ファイル: test_testlist.py プロジェクト: sYnfo/samba
 def test_unused(self):
     mgr = RestrictedTestManager(["foo.bar"])
     self.assertEquals(["foo.bar"], list(mgr.iter_unused()))
コード例 #4
0
ファイル: test_testlist.py プロジェクト: sYnfo/samba
 def test_run_multiple_subtests(self):
     mgr = RestrictedTestManager(["foo.bar.blie", "foo.bar.bla"])
     self.assertEquals(["blie", "bla"], mgr.should_run_testsuite("foo.bar"))
コード例 #5
0
 def test_run_nomatch(self):
     mgr = RestrictedTestManager(["foo.bar"])
     self.assertEquals([], mgr.should_run_testsuite("foo.blie.bla"))
コード例 #6
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"))
コード例 #7
0
 def test_run_subtest_after_testsuite(self):
     mgr = RestrictedTestManager(["foo.bar", "foo.bar.bla"])
     self.assertEquals(None, mgr.should_run_testsuite("foo.bar"))
コード例 #8
0
 def test_unused(self):
     mgr = RestrictedTestManager(["foo.bar"])
     self.assertEquals(["foo.bar"], list(mgr.iter_unused()))