diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-03 08:54:27 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-03 08:54:27 -0500 |
commit | 3b6e8394c3e50cb733caafb275d2ae85c0397565 (patch) | |
tree | dd960443f9ef3772020d74c102d785968bb44dce /test/test_parser.py | |
parent | 3416380e8e46d839c3111d9f82a5f7d93a218821 (diff) | |
parent | 9e4908f37c370250ebc7836e744a59170720a9e3 (diff) | |
download | python-coveragepy-git-3b6e8394c3e50cb733caafb275d2ae85c0397565.tar.gz |
Merged default onto config.
--HG--
branch : config
Diffstat (limited to 'test/test_parser.py')
-rw-r--r-- | test/test_parser.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_parser.py b/test/test_parser.py index 0dc7089c..b398044d 100644 --- a/test/test_parser.py +++ b/test/test_parser.py @@ -19,7 +19,7 @@ class ParserTest(CoverageTest): cp = CodeParser(text, exclude="nocover") cp.parse_source() return cp - + def test_exit_counts(self): cp = self.parse_source("""\ # check some basic branch counting @@ -29,7 +29,7 @@ class ParserTest(CoverageTest): return 5 else: return 7 - + class Bar: pass """) @@ -52,13 +52,13 @@ class ParserTest(CoverageTest): self.assertEqual(cp.exit_counts(), { 1: 1, 2:1, 3:1, 4:1, 5:1, 6:1, 7:1, 8:1, 9:1 }) - + def test_excluded_classes(self): cp = self.parse_source("""\ class Foo: def __init__(self): pass - + if 0: # nocover class Bar: pass @@ -66,7 +66,7 @@ class ParserTest(CoverageTest): self.assertEqual(cp.exit_counts(), { 1:0, 2:1, 3:1 }) - + def test_missing_branch_to_excluded_code(self): cp = self.parse_source("""\ if fooey: |