示例#1
0
	def testBalancedAndUnbalancedBrackets( self ):
		inputString = 's @@(@@) @@(@@ e'
		prep = _PreprocessorAction( None )
		self.assertRaises( BuildError, prep.processLine, inputString )
示例#2
0
	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 )