diff options
author | Peter Portante <peter.portante@redhat.com> | 2013-07-08 14:10:45 -0400 |
---|---|---|
committer | Luis Pabon <lpabon@redhat.com> | 2013-07-10 15:49:26 -0700 |
commit | 677d30716978615d0499344ac0a62c2755a486cf (patch) | |
tree | b86a156f120bdcd6f10d6b9998ef20b80cf50639 /test/unit/common/test_constraints.py | |
parent | f8d876248d29fa7f4857ac8ca02324795ba53353 (diff) |
Final forward port of PDQ performance patches
Change-Id: I4ef131b3cc7648d4571a4d854029efb1aff8b901
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Reviewed-on: http://review.gluster.org/5305
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'test/unit/common/test_constraints.py')
-rw-r--r-- | test/unit/common/test_constraints.py | 12 |
1 files changed, 1 insertions, 11 deletions
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')) |