1 import unittest 2 import antlr3 3 import testbase 4 5 6 class TestRecognitionException(unittest.TestCase): 7 """Tests for the antlr3.RecognitionException class""" 8 9 def testInitNone(self): 10 """RecognitionException.__init__()""" 11 12 exc = antlr3.RecognitionException() 13 14 15 class TestEarlyExitException(unittest.TestCase): 16 """Tests for the antlr3.EarlyExitException class""" 17 18 @testbase.broken("FIXME", Exception) 19 def testInitNone(self): 20 """EarlyExitException.__init__()""" 21 22 exc = antlr3.EarlyExitException() 23 24 25 class TestFailedPredicateException(unittest.TestCase): 26 """Tests for the antlr3.FailedPredicateException class""" 27 28 @testbase.broken("FIXME", Exception) 29 def testInitNone(self): 30 """FailedPredicateException.__init__()""" 31 32 exc = antlr3.FailedPredicateException() 33 34 35 class TestMismatchedNotSetException(unittest.TestCase): 36 """Tests for the antlr3.MismatchedNotSetException class""" 37 38 @testbase.broken("FIXME", Exception) 39 def testInitNone(self): 40 """MismatchedNotSetException.__init__()""" 41 42 exc = antlr3.MismatchedNotSetException() 43 44 45 class TestMismatchedRangeException(unittest.TestCase): 46 """Tests for the antlr3.MismatchedRangeException class""" 47 48 @testbase.broken("FIXME", Exception) 49 def testInitNone(self): 50 """MismatchedRangeException.__init__()""" 51 52 exc = antlr3.MismatchedRangeException() 53 54 55 class TestMismatchedSetException(unittest.TestCase): 56 """Tests for the antlr3.MismatchedSetException class""" 57 58 @testbase.broken("FIXME", Exception) 59 def testInitNone(self): 60 """MismatchedSetException.__init__()""" 61 62 exc = antlr3.MismatchedSetException() 63 64 65 class TestMismatchedTokenException(unittest.TestCase): 66 """Tests for the antlr3.MismatchedTokenException class""" 67 68 @testbase.broken("FIXME", Exception) 69 def testInitNone(self): 70 """MismatchedTokenException.__init__()""" 71 72 exc = antlr3.MismatchedTokenException() 73 74 75 class TestMismatchedTreeNodeException(unittest.TestCase): 76 """Tests for the antlr3.MismatchedTreeNodeException class""" 77 78 @testbase.broken("FIXME", Exception) 79 def testInitNone(self): 80 """MismatchedTreeNodeException.__init__()""" 81 82 exc = antlr3.MismatchedTreeNodeException() 83 84 85 class TestNoViableAltException(unittest.TestCase): 86 """Tests for the antlr3.NoViableAltException class""" 87 88 @testbase.broken("FIXME", Exception) 89 def testInitNone(self): 90 """NoViableAltException.__init__()""" 91 92 exc = antlr3.NoViableAltException() 93 94 95 if __name__ == "__main__": 96 unittest.main(testRunner=unittest.TextTestRunner(verbosity=2)) 97