Package lxml :: Package tests :: Module test_threading :: Class ThreadPipelineTestCase
[hide private]
[frames] | no frames]

Class ThreadPipelineTestCase

source code

               object --+        
                        |        
        unittest.TestCase --+    
                            |    
common_imports.HelperTestCase --+
                                |
                               ThreadPipelineTestCase

Threading tests based on a thread worker pipeline.
Nested Classes [hide private]
  Worker
  ParseWorker
  RotateWorker
  ReverseWorker
  ParseAndExtendWorker
  SerialiseWorker

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
_build_pipeline(self, item_count, *classes, **kwargs) source code
 
test_thread_pipeline_thread_parse(self) source code
 
test_thread_pipeline_global_parse(self) source code

Inherited from common_imports.HelperTestCase: parse, tearDown

Inherited from common_imports.HelperTestCase (private): _rootstring

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription

Inherited from unittest.TestCase (private): _exc_info

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

Class Variables [hide private]
  etree
The lxml.etree module implements the extended ElementTree API for XML.
  item_count = 20
  xml = '<xsl:stylesheet\n xmlns:xsl="http://www.w3.org/1999/...

Inherited from common_imports.HelperTestCase: assertFalse

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

etree

The lxml.etree module implements the extended ElementTree API for XML.
Value:
lxml.etree

xml

Value:
'''<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
  <xsl:output method="xml" />
  <xsl:template match="/">
     <div id="test">
       <xsl:apply-templates/>
     </div>
...