Package advene :: Package model :: Module test :: Class ModeledTestCase
[hide private]
[frames] | no frames]

Class ModeledTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   ModeledTestCase

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
test_getModelChildren__length(self) source code
 
test_getChild__no_arg(self) source code
 
test_getChild__match_alone__qname(self) source code
 
test_getChild__match_alone__element(self) source code
 
test_getChild__before_alone__qname(self) source code
 
test_getChild__before_alone__element(self) source code
 
test_getChild__after_alone__qname(self) source code
 
test_getChild__after_alone__element(self) source code
 
test_getChild__before_and_match(self) source code
 
test_getChild__before_and_after(self) source code
 
test_getChild__match_and_after(self) source code
 
test_getChild__before_match_and_after(self) source code
 
test_getChild__multiple_match(self) source code
 
test_getChild__match_alone__qname_ns(self) source code

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

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  xml = u'<?xml version="1.0" encoding="utf-8...
  fooNS = 'http://foo.com/'
  xml_w_ns = u'<?xml version="1.0" encoding="utf-8...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)

tearDown(self)

source code 

Hook method for deconstructing the test fixture after testing it.

Overrides: unittest.TestCase.tearDown
(inherited documentation)

Class Variable Details [hide private]

xml

Value:
u'''<?xml version="1.0" encoding="utf-8"?>
<test>
  <a/>
  <b/>
  <c id="1"/>
  <c id="2"/>
  <c id="3"/>
  <d/>
...

xml_w_ns

Value:
u'''<?xml version="1.0" encoding="utf-8"?>
<test xmlns="http://foo.com/">
  <a/>
  <b/>
  <c/>
</test>
    '''