def getTestMethod(vb):
    'Create a test method'

    def testMethod(self):
        try:
            buildParseTree(vb, dialect='vb.net')
        except VBParserError:
            raise Exception(('Unable to parse ...\n%s' % vb))
    return testMethod
Create a test method
def getTestMethod(vb):
    

    def testMethod(self):
        try:
            buildParseTree(vb, dialect='vb.net')
        except VBParserError:
            raise Exception(('Unable to parse ...\n%s' % vb))
    return testMethod