You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/03/15 20:18:17 UTC

svn commit: r1081911 - /incubator/libcloud/trunk/test/storage/test_cloudfiles.py

Author: tomaz
Date: Tue Mar 15 19:18:17 2011
New Revision: 1081911

URL: http://svn.apache.org/viewvc?rev=1081911&view=rev
Log:
Remove duplicated methods.

Modified:
    incubator/libcloud/trunk/test/storage/test_cloudfiles.py

Modified: incubator/libcloud/trunk/test/storage/test_cloudfiles.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/test/storage/test_cloudfiles.py?rev=1081911&r1=1081910&r2=1081911&view=diff
==============================================================================
--- incubator/libcloud/trunk/test/storage/test_cloudfiles.py (original)
+++ incubator/libcloud/trunk/test/storage/test_cloudfiles.py Tue Mar 15 19:18:17 2011
@@ -120,16 +120,6 @@ class CloudFilesTests(unittest.TestCase)
                 'Container already exists but an exception was not thrown')
 
     def test_create_container_invalid_name(self):
-        try:
-            self.driver.create_container(container_name='invalid//name/')
-        except:
-            pass
-        else:
-            self.fail(
-                'Invalid name was provided (name contains slashes)'
-                ', but exception was not thrown')
-
-    def test_create_container_invalid_name(self):
         name = ''.join([ 'x' for x in range(0, 257)])
         try:
             self.driver.create_container(container_name=name)
@@ -345,14 +335,6 @@ class CloudFilesTests(unittest.TestCase)
             libcloud.utils.guess_file_mime_type = old_func
 
     def test_delete_object_success(self):
-        container = Container(name='foo_bar_container', extra={}, driver=self)
-        obj = Object(name='foo_bar_object', size=1000, hash=None, extra={},
-                     container=container, meta_data=None,
-                     driver=CloudFilesStorageDriver)
-        result = self.driver.delete_object(obj=obj)
-        self.assertTrue(result)
-
-    def test_delete_object_success(self):
         CloudFilesMockHttp.type = 'NOT_FOUND'
         container = Container(name='foo_bar_container', extra={}, driver=self)
         obj = Object(name='foo_bar_object', size=1000, hash=None, extra={},