diff options
Diffstat (limited to 'simple_unit_tests.py')
-rw-r--r-- | simple_unit_tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/simple_unit_tests.py b/simple_unit_tests.py index 7b8bf2c..acf75ea 100644 --- a/simple_unit_tests.py +++ b/simple_unit_tests.py @@ -75,6 +75,7 @@ class PyparsingExpressionTestCase(unittest.TestCase): self.assertEqual(ar.exception.loc, test_spec.expected_fail_locn) +#=========== TEST DEFINITIONS START HERE ============== class TestLiteral(PyparsingExpressionTestCase): tests = [ @@ -148,7 +149,6 @@ class TestWord(PyparsingExpressionTestCase): ), ] - class TestRepetition(PyparsingExpressionTestCase): tests = [ PpTestSpec( @@ -178,7 +178,6 @@ class TestRepetition(PyparsingExpressionTestCase): ), ] - class TestResultsName(PyparsingExpressionTestCase): tests = [ PpTestSpec( @@ -319,6 +318,9 @@ class TestTransformStringUsingParseActions(PyparsingExpressionTestCase): ), ] + +#============ MAIN ================ + if __name__ == '__main__': # we use unittest features that are in Py3 only, bail out if run on Py2 import sys |