diff --git a/tests/integration/test_fablib.py b/tests/integration/test_fablib.py index 59c5a31a..a9e00879 100644 --- a/tests/integration/test_fablib.py +++ b/tests/integration/test_fablib.py @@ -44,6 +44,13 @@ def test_fablib_list_sites_with_fields(self): fablib = FablibManager() fablib.list_sites(fields=["Name", "ConnectX-5 Available", "NVMe Total"]) + def test_fablib_list_sites_with_filter_function(self): + fablib = FablibManager() + fablib.list_sites( + filter_function=lambda s: s["ConnectX-5 Available"] > 3 + and s["NVMe Available"] <= 10 + ) + if __name__ == "__main__": unittest.main()