]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_rados: don't use assert_greater
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 10 Jul 2013 20:13:25 +0000 (13:13 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 10 Jul 2013 20:25:56 +0000 (13:25 -0700)
It's only present in very recent versions of nose, and doesn't provide
much beyond a simple assert.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/test/pybind/test_rados.py

index 01b6a219bec7ccbb65681f45d0a515468d0ddf5a..5176d6383d5435bdde3fc508492c182ab44a0868 100644 (file)
@@ -1,4 +1,4 @@
-from nose.tools import eq_ as eq, assert_raises, assert_greater
+from nose.tools import eq_ as eq, assert_raises
 from rados import (Rados, Object, ObjectExists, ObjectNotFound,
                    ANONYMOUS_AUID, ADMIN_AUID)
 import threading
@@ -301,14 +301,14 @@ class TestMonCommand(object):
         cmd = {"prefix":"mon dump"}
         ret, buf, errs = self.rados.mon_command(json.dumps(cmd), '', timeout=30)
         eq(ret, 0)
-        assert_greater(len(buf), 0)
+        assert len(buf) > 0
         assert('epoch' in buf)
 
         # JSON, and grab current epoch
         cmd['format'] = 'json'
         ret, buf, errs = self.rados.mon_command(json.dumps(cmd), '', timeout=30)
         eq(ret, 0)
-        assert_greater(len(buf), 0)
+        assert len(buf) > 0
         d = json.loads(buf)
         assert('epoch' in d)
         epoch = d['epoch']
@@ -326,7 +326,7 @@ class TestMonCommand(object):
         ret, buf, errs = self.rados.mon_command(json.dumps(cmd), '', timeout=30,
                                                 target=target)
         eq(ret, 0)
-        assert_greater(len(buf), 0)
+        assert len(buf) > 0
         d = json.loads(buf)
         assert('epoch' in d)
 
@@ -336,7 +336,7 @@ class TestMonCommand(object):
         ret, buf, errs = self.rados.mon_command(json.dumps(cmd), '', timeout=30,
                                                 target=target)
         eq(ret, 0)
-        assert_greater(len(buf), 0)
+        assert len(buf) > 0
         d = json.loads(buf)
         assert('epoch' in d)