]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test_rbd: move flatten tests back into TestClone
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 26 Feb 2013 00:09:26 +0000 (16:09 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 26 Feb 2013 00:09:29 +0000 (16:09 -0800)
They need the same setup, and it's easy enough to run specific
subtests. Making them a separate subclass accidentally duplicated
tests from TestClone.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/test/pybind/test_rbd.py

index fbcd3f780405313c341bbd70ec28de028fc2e87b..c8b399bbb24ce7bfe4a7add771eae8cafaf6716c 100644 (file)
@@ -607,9 +607,7 @@ class TestClone(object):
         eq(self.image.list_children(), [('rbd', 'clone')])
         self.clone = Image(ioctx, 'clone')
 
-class TestFlatten(TestClone):
-
-    def test_errors(self):
+    def test_flatten_errors(self):
         # test that we can't flatten a non-clone
         assert_raises(InvalidArgument, self.image.flatten)
 
@@ -649,11 +647,11 @@ class TestFlatten(TestClone):
             eq(clone.overlap(), 0)
         self.rbd.remove(ioctx, 'clone2')
 
-    def test_basic(self):
+    def test_flatten_basic(self):
         self.check_flatten_with_order(IMG_ORDER)
 
-    def test_smaller_order(self):
+    def test_flatten_smaller_order(self):
         self.check_flatten_with_order(IMG_ORDER - 2)
 
-    def test_larger_order(self):
+    def test_flatten_larger_order(self):
         self.check_flatten_with_order(IMG_ORDER + 2)