Package libxyz :: Package parser :: Module tests :: Class TestBlock
[hide private]
[frames] | no frames]

Class TestBlock

source code

object --+
         |
        TestBlock

Instance Methods [hide private]
 
setUp(self) source code
 
testOptType(self)
Raise error on wrong opt type
source code
 
testQuote(self)
Parsing should raise ParseError on unterminated quotes
source code
 
testXQuote(self)
Test extended quotes
source code
 
testEmptyQuote(self)
Test parsing empty string value: ""
source code
 
testEmptyXQuote(self)
Test parsing empty x-quote
source code
 
testComments(self)
Test proper commenting
source code
 
testInit(self)
In STATE_INIT state only keyword is acceptable
source code
 
testUnknownVar(self)
Variable not in valid list is not allowed
source code
 
testValidVar(self)
Invalid variable name should raise exception
source code
 
testAssignChar1(self)
Test for assign character
source code
 
testAssignChar2(self)
Test for assign character
source code
 
testDelimiter1(self)
Correct delimiter should be supplied
source code
 
testDelimiter2(self)
Correct delimiter should be supplied
source code
 
testCompleteQuote(self)
Check for unclosed quote upon EOF
source code
 
testCompleteBlock(self)
Check for unclosed block upon EOF
source code
 
testValueValidator1(self)
Check if value_validator raises exception1
source code
 
testMacroValueValidator1(self)
Check if value_validator raises exception on macro
source code
 
testVarTransformation1(self)
Check for correct var transformation
source code
 
testValueValidator2(self)
Check for value_validator correct value
source code
 
testMacroValueValidator2(self)
Check for value_validator correct value on macro
source code
 
testVarTransformation2(self)
Check for correct var transformation
source code
 
testEscaping(self)
Check for proper escaping
source code
 
testListValue(self)
Check for proper list values parsing
source code
 
testUndefinedMacro(self)
Check for undefined macro
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

testOptType(self)

source code 

Raise error on wrong opt type

Decorators:
  • @raises(XYZValueError)

testQuote(self)

source code 

Parsing should raise ParseError on unterminated quotes

Decorators:
  • @raises(ParseError)

testInit(self)

source code 

In STATE_INIT state only keyword is acceptable

Decorators:
  • @raises(ParseError)

testUnknownVar(self)

source code 

Variable not in valid list is not allowed

Decorators:
  • @raises(ParseError)

testValidVar(self)

source code 

Invalid variable name should raise exception

Decorators:
  • @raises(ParseError)

testDelimiter1(self)

source code 

Correct delimiter should be supplied

Decorators:
  • @raises(ParseError)

testCompleteQuote(self)

source code 

Check for unclosed quote upon EOF

Decorators:
  • @raises(ParseError)

testCompleteBlock(self)

source code 

Check for unclosed block upon EOF

Decorators:
  • @raises(ParseError)

testValueValidator1(self)

source code 

Check if value_validator raises exception1

Decorators:
  • @raises(ParseError)

testMacroValueValidator1(self)

source code 

Check if value_validator raises exception on macro

Decorators:
  • @raises(ParseError)

testVarTransformation1(self)

source code 

Check for correct var transformation

Decorators:
  • @raises(ParseError)

testUndefinedMacro(self)

source code 

Check for undefined macro

Decorators:
  • @raises(ParseError)