From: Rishabh Dave Date: Sat, 4 Apr 2026 13:03:35 +0000 (+0530) Subject: test/pybind/assertions: add helper method assert_less X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1bb899edaca26664307eb89aaa2b999882aaf96b;p=ceph.git test/pybind/assertions: add helper method assert_less Signed-off-by: Rishabh Dave --- diff --git a/src/test/pybind/assertions.py b/src/test/pybind/assertions.py index 719700f3ab71..698ff7ac6621 100644 --- a/src/test/pybind/assertions.py +++ b/src/test/pybind/assertions.py @@ -1,3 +1,6 @@ +def assert_lesser(a, b): + assert a < b + def assert_equal(a, b): assert a == b diff --git a/src/test/pybind/test_cephfs.py b/src/test/pybind/test_cephfs.py index 0943d72117a3..6e1da88b1076 100644 --- a/src/test/pybind/test_cephfs.py +++ b/src/test/pybind/test_cephfs.py @@ -1,7 +1,8 @@ # vim: expandtab shiftwidth=4 softtabstop=4 import collections collections.Callable = collections.abc.Callable -from assertions import assert_raises, assert_equal, assert_not_equal, assert_greater +from assertions import assert_raises, assert_equal, assert_not_equal, \ + assert_greater, assert_lesser import cephfs as libcephfs import fcntl import os