-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
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']
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)
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)