From 1bb899edaca26664307eb89aaa2b999882aaf96b Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Sat, 4 Apr 2026 18:33:35 +0530 Subject: [PATCH] test/pybind/assertions: add helper method assert_less Signed-off-by: Rishabh Dave --- src/test/pybind/assertions.py | 3 +++ src/test/pybind/test_cephfs.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.47.3