[Zodb-checkins] SVN: ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/packing.txt Take out duplicate bits.

Chris McDonough chrism at plope.com
Sun Jun 12 18:01:51 EDT 2005


Log message for revision 30778:
  Take out duplicate bits.
  

Changed:
  U   ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/packing.txt

-=-
Modified: ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/packing.txt
===================================================================
--- ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/packing.txt	2005-06-12 21:58:00 UTC (rev 30777)
+++ ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/packing.txt	2005-06-12 22:01:51 UTC (rev 30778)
@@ -15,12 +15,10 @@
 Packing support for blob data
 =============================
 
-UNDOING
-=======
+Set up:
 
-We need an database with an undoing blob supporting storage:
-
     >>> from ZODB.FileStorage import FileStorage
+    >>> from ZODB.MappingStorage import MappingStorage
     >>> from ZODB.serialize import referencesf
     >>> from ZODB.Blobs.BlobStorage import BlobStorage
     >>> from ZODB.Blobs.Blob import Blob
@@ -30,8 +28,15 @@
     >>> import transaction
     >>> from tempfile import mkdtemp, mktemp
     >>> storagefile = mktemp()
-    >>> base_storage = FileStorage(storagefile)
     >>> blob_dir = mkdtemp()
+
+
+UNDOING
+=======
+
+We need an database with an undoing blob supporting storage:
+
+    >>> base_storage = FileStorage(storagefile)
     >>> blob_storage = BlobStorage(blob_dir, base_storage)
     >>> database = DB(blob_storage)
     
@@ -151,16 +156,7 @@
 
 We need an database with a NON-undoing blob supporting storage:
 
-    >>> from ZODB.MappingStorage import MappingStorage
-    >>> from ZODB.serialize import referencesf
-    >>> from ZODB.Blobs.BlobStorage import BlobStorage
-    >>> from ZODB.Blobs.Blob import Blob
-    >>> from ZODB import utils
-    >>> from ZODB.DB import DB
-    >>> import transaction
-    >>> from tempfile import mkdtemp, mktemp
     >>> base_storage = MappingStorage('storage')
-    >>> blob_dir = '/home/chrism/test_blobs'
     >>> blob_storage = BlobStorage(blob_dir, base_storage)
     >>> database = DB(blob_storage)
     



More information about the Zodb-checkins mailing list