Peach :: Generators :: xmlstuff :: XmlParserTests :: Class XmlParserTests
[hide private]

Class XmlParserTests

source code


W3C XML Validation Tests. This includes all sets of tests, invalid, non-well formed, valid and error.

NOTE: Test files are in samples/xmltests.zip these are the latest test cases from W3C as of 02/23/06 for XML.

Instance Methods [hide private]
 
__init__(self, group, testFiles=None)
Base constructor, please call me!
source code
string
getRawValue(self)
Return raw value w/o passing through transformer if set.
source code
 
next(self)
Next value.
source code

Inherited from generator.Generator: __iter__, getGroup, getName, getTransformer, getValue, identity, reset, setGroup, setName, setTransformer

Static Methods [hide private]
 
unittest() source code
Method Details [hide private]

__init__(self, group, testFiles=None)
(Constructor)

source code 

Base constructor, please call me!

Parameters:
  • group (Group) - Group this Generator belongs to
  • testFiles (string) - Location of test files
Overrides: generator.Generator.__init__

getRawValue(self)

source code 

Return raw value w/o passing through transformer if set. OVERRIDE

Returns: string
Data before transformations
Overrides: generator.Generator.getRawValue
(inherited documentation)

next(self)

source code 

Next value. OVERRIDE

From Python docs on next():

The intention of the protocol is that once an iterator's next() method raises StopIteration, it will continue to do so on subsequent calls. Implementations that do not obey this property are deemed broken. (This constraint was added in Python 2.3; in Python 2.2, various iterators are broken according to this rule.)

For Generators, please use the GeneratorCompleted exception instead of StopIteration (its a subclass).

Overrides: generator.Generator.next
(inherited documentation)