[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests - __init__.py:1.1.2.4 testImageEdit.py:1.1.2.5

Guido van Rossum guido@python.org
Tue, 4 Jun 2002 14:59:54 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv1575/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests

Modified Files:
      Tag: Zope-3x-branch
	__init__.py testImageEdit.py 
Log Message:
Whoever (not Jeremy :-) checks in files from Windows with the CRLF
markers still left in, please stop doing this.  It screws up the
checkouts for everyone else (including Windows users who use the
command line cvs tools).  Hint: some wincvs do this.



=== Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests/__init__.py 1.1.2.3 => 1.1.2.4 ===
 # 
 ##############################################################################
-"""
-
+"""
+
 $Id$
-"""
+"""


=== Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests/testImageEdit.py 1.1.2.4 => 1.1.2.5 ===
 # 
 ##############################################################################
-"""
-
+"""
+
 $Id$
 """
-
-import unittest, cStringIO
-
-from Zope.App.OFS.Content.Image.Views.Browser.ImageEdit import ImageEdit
-from Zope.App.OFS.Content.Image.Image import Image
-
-
-class Test( unittest.TestCase ):
-
-    def testEdit(self):
-        """ """
-        file = Image()
-        fe = ImageEdit(file) 
-
-        file = cStringIO.StringIO()
-        file.write('Data')
-        file.seek(0)
-
-        # XXX How can I create a REQUEST object?
-        #fe.action({'field_data': file, 'field_contentType': 'text/plain'})
-        #self.assertEqual(fe.getContext().getContentType(), 'text/plain')
-        #self.assertEqual(fe.getContext().getData(), 'Data')
-        
-
-
-def test_suite():
-    loader = unittest.TestLoader()
-    return loader.loadTestsFromTestCase( Test )
-
-if __name__=='__main__':
-    unittest.main()
+
+import unittest, cStringIO
+
+from Zope.App.OFS.Content.Image.Views.Browser.ImageEdit import ImageEdit
+from Zope.App.OFS.Content.Image.Image import Image
+
+
+class Test( unittest.TestCase ):
+
+    def testEdit(self):
+        """ """
+        file = Image()
+        fe = ImageEdit(file) 
+
+        file = cStringIO.StringIO()
+        file.write('Data')
+        file.seek(0)
+
+        # XXX How can I create a REQUEST object?
+        #fe.action({'field_data': file, 'field_contentType': 'text/plain'})
+        #self.assertEqual(fe.getContext().getContentType(), 'text/plain')
+        #self.assertEqual(fe.getContext().getData(), 'Data')
+        
+
+
+def test_suite():
+    loader = unittest.TestLoader()
+    return loader.loadTestsFromTestCase( Test )
+
+if __name__=='__main__':
+    unittest.main()