From afc513d432109f120a0cbac21d55e5e4d66c7614 Mon Sep 17 00:00:00 2001 From: Rafal Stefanowski Date: Fri, 27 Dec 2019 13:09:15 +0100 Subject: [PATCH] Add minor improvements in tests API Signed-off-by: Rafal Stefanowski --- test/functional/api/cas/cache_config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/functional/api/cas/cache_config.py b/test/functional/api/cas/cache_config.py index f5bc37b..90d47a3 100644 --- a/test/functional/api/cas/cache_config.py +++ b/test/functional/api/cas/cache_config.py @@ -110,6 +110,14 @@ class FlushParametersAlru: alru_params.wake_up_time = Time(seconds=20) return alru_params + def __eq__(self, other): + return ( + self.wake_up_time == other.wake_up_time + and self.staleness_time == other.staleness_time + and self.flush_max_buffers == other.flush_max_buffers + and self.activity_threshold == other.activity_threshold + ) + class FlushParametersAcp: def __init__(self, @@ -129,6 +137,11 @@ class FlushParametersAcp: acp_params.wake_up_time = Time(milliseconds=10) return acp_params + def __eq__(self, other): + return ( + self.wake_up_time == other.wake_up_time + and self.flush_max_buffers == other.flush_max_buffers + ) class SeqCutOffParameters: def __init__(self, policy=None, threshold=None):