xmltester
Class to test xml snippets.
XMLTester
Bases: TestCase
Test xml equality.
Source code in corpustools/test/xmltester.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
assertXmlEqual(got, want)
staticmethod
Check if two stringified xml snippets are equal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
got
|
Element
|
the xml part given by the tester |
required |
want
|
Element
|
the wanted xml |
required |
Raises:
| Type | Description |
|---|---|
AssertionError
|
If they are not equal |
Source code in corpustools/test/xmltester.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |