configurationengine/source/cone/storage/tests/unittest_zipresource.py
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
--- a/configurationengine/source/cone/storage/tests/unittest_zipresource.py	Fri Mar 12 08:30:17 2010 +0200
+++ b/configurationengine/source/cone/storage/tests/unittest_zipresource.py	Tue Aug 10 14:29:28 2010 +0300
@@ -21,14 +21,11 @@
 
 import zipfile
 import unittest
-import string
-import sys,os,shutil
+import os,shutil
 
 ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
 
-import __init__
-from cone.public.exceptions import *
-from cone.public.api import Resource
+from cone.public import exceptions 
 from cone.storage import zipstorage
 
 TEMP_DIR = os.path.join(ROOT_PATH, 'temp')
@@ -99,7 +96,7 @@
         store = zipstorage.ZipStorage(ZIPFILE, "w")
         res = store.open_resource("test_getsize.txt", "w")
         res.write("Writing foobar")
-        self.assertRaises(StorageException, res.get_size)
+        self.assertRaises(exceptions.StorageException, res.get_size)
         res.close()
         store.close()
 
@@ -116,4 +113,4 @@
 
         
 if __name__ == '__main__':
-      unittest.main()
+    unittest.main()