From 677d30716978615d0499344ac0a62c2755a486cf Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Mon, 8 Jul 2013 14:10:45 -0400 Subject: Final forward port of PDQ performance patches Change-Id: I4ef131b3cc7648d4571a4d854029efb1aff8b901 Signed-off-by: Peter Portante Reviewed-on: http://review.gluster.org/5305 Reviewed-by: Luis Pabon Tested-by: Luis Pabon --- test/unit/common/test_constraints.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'test/unit/common/test_constraints.py') diff --git a/test/unit/common/test_constraints.py b/test/unit/common/test_constraints.py index e2769ab..7139094 100644 --- a/test/unit/common/test_constraints.py +++ b/test/unit/common/test_constraints.py @@ -73,6 +73,7 @@ class TestConstraints(unittest.TestCase): self.assertTrue(cnt.validate_obj_name_component('tests'*(max_obj_len/5+1))) self.assertTrue(cnt.validate_obj_name_component('.')) self.assertTrue(cnt.validate_obj_name_component('..')) + self.assertTrue(cnt.validate_obj_name_component('')) def test_gluster_check_object_creation(self): with patch('gluster.swift.common.constraints.__check_object_creation', @@ -83,14 +84,3 @@ class TestConstraints(unittest.TestCase): with patch('gluster.swift.common.constraints.__check_object_creation', mock_check_object_creation): self.assertTrue(cnt.gluster_check_object_creation(None, 'dir/.')) - - def test_gluster_check_mount(self): - with patch('gluster.swift.common.constraints.__check_mount', - mock_check_mount): - self.assertTrue(cnt.gluster_check_mount('/tmp/drive', 'vol0')) - - with patch('gluster.swift.common.constraints.__check_mount', - mock_check_mount_err): - with patch('gluster.swift.common.Glusterfs.mount', - mock_glusterfs_mount): - self.assertTrue(cnt.gluster_check_mount('/tmp/drive', 'vol0')) -- cgit