add a.xml and make xmlfiletests use it.
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<A href="http://www.cs.bilkent.edu.tr/~erayo">
|
||||||
|
<Name>Eray Ozkural</Name>
|
||||||
|
<Number>868</Number>
|
||||||
|
<Projects>
|
||||||
|
<Project>pisi</Project>
|
||||||
|
<Project>noatun</Project>
|
||||||
|
</Projects>
|
||||||
|
</A>
|
||||||
@@ -34,7 +34,7 @@ class XmlFileTestCase(unittest.TestCase):
|
|||||||
#t_Projects = [ [types.StringType], xmlfile.mandatory]
|
#t_Projects = [ [types.StringType], xmlfile.mandatory]
|
||||||
a = A()
|
a = A()
|
||||||
self.assertEqual(a.href, None)
|
self.assertEqual(a.href, None)
|
||||||
dom = mdom.parse('tests/sandbox/a.xml')
|
dom = mdom.parse('tests/a.xml')
|
||||||
node = getNode(dom, 'A')
|
node = getNode(dom, 'A')
|
||||||
self.assert_(len(A.decoders)>0)
|
self.assert_(len(A.decoders)>0)
|
||||||
a.decode(node)
|
a.decode(node)
|
||||||
|
|||||||
Reference in New Issue
Block a user