diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-13 08:19:38 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-13 08:19:38 -0400 |
commit | 2de10ba25de0c09ddffa6626a936468f43aa7343 (patch) | |
tree | c0628786da02a4ae1a2e35642fc6ae534e100a16 /test | |
parent | 9940bed3bfcd73fd17976f0140a0205d7d24b5e5 (diff) | |
download | python-coveragepy-2de10ba25de0c09ddffa6626a936468f43aa7343.tar.gz |
assertTrue isn't available in earlier Pythons?
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cmdline.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 1b7fcd9..b92fcc3 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -392,27 +392,27 @@ class CmdLineStdoutTest(CmdLineTest): def testMinimumHelp(self): self.command_line("") out = self.stdout() - self.assertTrue("Code coverage for Python." in out) - self.assertTrue(out.count("\n") < 4) + assert "Code coverage for Python." in out + assert out.count("\n") < 4 def testHelp(self): self.command_line("help") out = self.stdout() - self.assertTrue("nedbatchelder.com" in out) - self.assertTrue(out.count("\n") > 10) + assert "nedbatchelder.com" in out + assert out.count("\n") > 10 def testCmdHelp(self): self.command_line("help run") out = self.stdout() - self.assertTrue("<pyfile>" in out) - self.assertTrue("--timid" in out) - self.assertTrue(out.count("\n") > 10) + assert "<pyfile>" in out + assert "--timid" in out + assert out.count("\n") > 10 def testError(self): self.command_line("fooey kablooey", ret=ERR) out = self.stdout() - self.assertTrue("fooey" in out) - self.assertTrue("help" in out) + assert "fooey" in out + assert "help" in out if __name__ == '__main__': |