[Checkins] SVN: zope.file/branches/ajung-blobs/src/zope/file/browser.txt more tests fixed

Andreas Jung andreas at andreas-jung.com
Mon Feb 26 18:23:59 EST 2007


Log message for revision 72848:
  more tests fixed
  

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

-=-
Modified: zope.file/branches/ajung-blobs/src/zope/file/browser.txt
===================================================================
--- zope.file/branches/ajung-blobs/src/zope/file/browser.txt	2007-02-26 23:00:33 UTC (rev 72847)
+++ zope.file/branches/ajung-blobs/src/zope/file/browser.txt	2007-02-26 23:23:58 UTC (rev 72848)
@@ -29,7 +29,7 @@
 
   >>> w = f.open('wb')
   >>> w.write("some text")
-  >>> w.flush()
+  >>> w.close()
 
 The sized adapter now reflects the updated size::
 
@@ -40,11 +40,12 @@
 
 Let's try again with a larger file size::
 
-  >>> w.write("x" * 1024*1024)
-  >>> w.flush()
+  >>> w = f.open('w')
+  >>> w.write("x" * (1024*1024+10))
+  >>> w.close()
 
   >>> s.sizeForSorting()
-  ('byte', 1048585)
+  ('byte', 1048586)
   >>> m = s.sizeForDisplay()
   >>> m
   u'${size} MB'
@@ -53,11 +54,12 @@
 
 And still a bigger size::
 
-  >>> w.write("x" * 512*1024)
+  >>> w = f.open('w')
+  >>> w.write("x" * 3*512*1024)
   >>> w.close()
 
   >>> s.sizeForSorting()
-  ('byte', 1572873)
+  ('byte', 1572864)
   >>> m = s.sizeForDisplay()
   >>> m
   u'${size} MB'



More information about the Checkins mailing list