def test_looksLikeTestModule(self): for filename in ['test_script.py', 'twisted/trial/test/test_script.py']: self.failUnless(trial.isTestFile(filename), "%r should be a test file" % (filename,)) for filename in ['twisted/trial/test/moduletest.py', sibpath('scripttest.py'), sibpath('test_foo.bat')]: self.failIf(trial.isTestFile(filename), "%r should *not* be a test file" % (filename,))
def test_looksLikeTestModule(self): for filename in ["test_script.py", "twisted/trial/test/test_script.py"]: self.assertTrue( trial.isTestFile(filename), "%r should be a test file" % (filename,) ) for filename in [ "twisted/trial/test/moduletest.py", sibpath("scripttest.py"), sibpath("test_foo.bat"), ]: self.assertFalse( trial.isTestFile(filename), "%r should *not* be a test file" % (filename,), )
def test_looksLikeTestModule(self): for filename in ["test_script.py", "twisted/trial/test/test_script.py"]: self.failUnless(trial.isTestFile(filename), "%r should be a test file" % (filename,)) for filename in ["twisted/trial/test/moduletest.py", sibpath("scripttest.py"), sibpath("test_foo.bat")]: self.failIf(trial.isTestFile(filename), "%r should *not* be a test file" % (filename,))