diff options
author | Josh Durgin <josh.durgin@inktank.com> | 2013-02-25 16:09:26 -0800 |
---|---|---|
committer | Josh Durgin <josh.durgin@inktank.com> | 2013-02-25 16:09:29 -0800 |
commit | 9c693d7e8312026f6d8d9586381b026ada35d808 (patch) | |
tree | df26f6755d250f314589cd3b2c8b8a5fdbc3f0e5 | |
parent | 55bd7687bf689115d6e06840a58cd30f7d152387 (diff) | |
download | ceph-9c693d7e8312026f6d8d9586381b026ada35d808.tar.gz |
test_rbd: move flatten tests back into TestClone
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>
-rw-r--r-- | src/test/pybind/test_rbd.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/pybind/test_rbd.py b/src/test/pybind/test_rbd.py index fbcd3f78040..c8b399bbb24 100644 --- a/src/test/pybind/test_rbd.py +++ b/src/test/pybind/test_rbd.py @@ -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) |