[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/tests - test_xmlimportexport.py:1.16

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Apr 16 07:51:59 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful/tests
In directory cvs.zope.org:/tmp/cvs-serv16413/src/zope/app/workflow/stateful/tests

Modified Files:
	test_xmlimportexport.py 
Log Message:


Fix up tests to latest API changes.


=== Zope3/src/zope/app/workflow/stateful/tests/test_xmlimportexport.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_xmlimportexport.py:1.15	Sat Mar 13 18:01:17 2004
+++ Zope3/src/zope/app/workflow/stateful/tests/test_xmlimportexport.py	Fri Apr 16 07:51:59 2004
@@ -119,16 +119,13 @@
 
     def testImport(self):
         testpd = TestProcessDefinition()
-        handler = XMLImportHandler()
+        handler = XMLImportHandler(testpd)
 
-        self.assertEqual(handler.canImport(testpd, StringIO(xml_text)), True)
-        self.assertEqual(handler.canImport(None, StringIO(xml_text)), False)
-        self.assertEqual(
-            handler.canImport(None, StringIO(
-            '<some><nonworking/><xml/></some>')),
-            False)
+        self.assertEqual(handler.canImport(xml_text), True)
+        self.assertEqual(handler.canImport('<some><nonworking/><xml/></some>'),
+                         False)
 
-        handler.doImport(testpd, StringIO(xml_text))
+        handler.doImport(xml_text)
 
         self.assertEqual(testpd.relevantDataSchema, ISchema)
         self.assertEqual(IZopeDublinCore(testpd).title, 'TestPD')




More information about the Zope3-Checkins mailing list