Package lxml :: Package tests :: Module test_xmlschema :: Class ETreeXMLSchemaTestCase
[hide private]
[frames] | no frames]

Class ETreeXMLSchemaTestCase

source code

               object --+        
                        |        
   unittest.case.TestCase --+    
                            |    
common_imports.HelperTestCase --+
                                |
                               ETreeXMLSchemaTestCase

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
test_xmlschema(self) source code
 
test_xmlschema_error_log(self) source code
 
test_xmlschema_error_log_path(self)
We don't have a guarantee that there will always be a path for a _LogEntry object (or even a node for which to determina a path), but at least when this test was created schema validation errors always got a node and an XPath value.
source code
 
test_xmlschema_default_attributes(self) source code
 
test_xmlschema_parse(self) source code
 
test_xmlschema_parse_default_attributes(self) source code
 
test_xmlschema_parse_default_attributes_schema_config(self) source code
 
test_xmlschema_parse_fixed_attributes(self) source code
 
test_xmlschema_stringio(self) source code
 
test_xmlschema_iterparse(self) source code
 
test_xmlschema_iterparse_incomplete(self) source code
 
test_xmlschema_iterparse_fail(self) source code
 
test_xmlschema_elementtree_error(self) source code
 
test_xmlschema_comment_error(self) source code
 
test_xmlschema_illegal_validation_error(self) source code
 
test_xmlschema_invalid_schema1(self) source code
 
test_xmlschema_invalid_schema2(self) source code
 
test_xmlschema_file(self) source code
 
test_xmlschema_import_file(self) source code
 
test_xmlschema_shortcut(self) source code
 
test_create_from_partial_doc(self) source code

Inherited from common_imports.HelperTestCase: parse, tearDown

Inherited from common_imports.HelperTestCase (private): _rootstring

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription, skipTest

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

test_xmlschema_error_log_path(self)

source code 
We don't have a guarantee that there will always be a path
for a _LogEntry object (or even a node for which to determina
a path), but at least when this test was created schema validation
errors always got a node and an XPath value. If that ever changes,
we can modify this test to something like:
    self.assertTrue(error_path is None or tree_path == error_path)
That way, we can at least verify that if we did get a path value
it wasn't bogus.