def testBalancedAndUnbalancedBrackets( self ): inputString = 's @@(@@) @@(@@ e' prep = _PreprocessorAction( None ) self.assertRaises( BuildError, prep.processLine, inputString )
def _runTest( self, inputString, outputString, msg = None ): '''Helper method to run a single test''' prep = _PreprocessorAction( None ) if not msg: msg = '{0} should resolve to {1}'.format( inputString, outputString ) self.assertEqual( outputString, prep.processLine( inputString ), msg )