From 01dcc3b0fdd81096ae6fca9127322b4100258a50 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Fri, 31 Jan 2020 17:48:40 -0500 Subject: [PATCH] tests: Add __str__ method for ACP config class Signed-off-by: Michal Mielewczyk --- test/functional/api/cas/cache_config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/functional/api/cas/cache_config.py b/test/functional/api/cas/cache_config.py index c66e862..7d6a358 100644 --- a/test/functional/api/cas/cache_config.py +++ b/test/functional/api/cas/cache_config.py @@ -168,6 +168,14 @@ class FlushParametersAcp: and self.wake_up_time == other.wake_up_time ) + def __str__(self): + ret = "" + if self.flush_max_buffers is not None: + ret += f"acp flush max buffers value: {self.flush_max_buffers} " + if self.wake_up_time is not None: + ret += f"acp wake up time value: {self.wake_up_time.total_milliseconds()}" + return ret + @staticmethod def acp_params_range(): acp_params = FlushParametersAcp()