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]
|
||||
a = A()
|
||||
self.assertEqual(a.href, None)
|
||||
dom = mdom.parse('tests/sandbox/a.xml')
|
||||
dom = mdom.parse('tests/a.xml')
|
||||
node = getNode(dom, 'A')
|
||||
self.assert_(len(A.decoders)>0)
|
||||
a.decode(node)
|
||||
|
||||
Reference in New Issue
Block a user