[Checkins] SVN: zope.file/branches/ajung-blobs/src/zope/file/download.txt adjusted tests since we can not open a reader and writer

Andreas Jung andreas at andreas-jung.com
Tue Feb 27 11:48:09 EST 2007


Log message for revision 72887:
  adjusted tests since we can not open a reader and writer
  at the same time within the same transaction
  

Changed:
  U   zope.file/branches/ajung-blobs/src/zope/file/download.txt

-=-
Modified: zope.file/branches/ajung-blobs/src/zope/file/download.txt
===================================================================
--- zope.file/branches/ajung-blobs/src/zope/file/download.txt	2007-02-27 16:47:44 UTC (rev 72886)
+++ zope.file/branches/ajung-blobs/src/zope/file/download.txt	2007-02-27 16:48:08 UTC (rev 72887)
@@ -113,7 +113,7 @@
 
   >>> w = f.open("wb")
   >>> w.write("some text")
-  >>> w.flush()
+  >>> w.close()
 
 Now we can create a result object and see if we get the data we
 expect::
@@ -123,24 +123,8 @@
   >>> "".join(L)
   'some text'
 
-If the body content is really large, the iterator may provide more
-than one chunk of data::
 
-  >>> w.write("*" * 1024 * 1024)
-  >>> w.flush()
 
-  >>> result = DownloadResult(f)
-  >>> L = list(result.body)
-  >>> len(L) > 1
-  True
-
-Once iteration over the body has completed, further iteration will not
-yield additional data::
-
-  >>> list(result.body)
-  []
-
-
 The Download View
 -----------------
 



More information about the Checkins mailing list