diff --git a/tests/functional/pyocf/types/cache.py b/tests/functional/pyocf/types/cache.py index ab32f33..2d15a09 100644 --- a/tests/functional/pyocf/types/cache.py +++ b/tests/functional/pyocf/types/cache.py @@ -759,10 +759,16 @@ class Cache: self.cores.remove(core) def get_front_volume(self): - return Volume.get_instance(lib.ocf_cache_get_front_volume(self.cache_handle)) + return Volume.get_instance(self.get_c_front_volume()) + + def get_c_front_volume(self): + return lib.ocf_cache_get_front_volume(self.cache_handle) def get_volume(self): - return Volume.get_instance(lib.ocf_cache_get_volume(self.cache_handle)) + return Volume.get_instance(self.get_c_volume()) + + def get_c_volume(self): + return lib.ocf_cache_get_volume(self.cache_handle) def get_conf(self): cache_info = CacheInfo() diff --git a/tests/functional/pyocf/types/core.py b/tests/functional/pyocf/types/core.py index 7f5c93b..0ea11e4 100644 --- a/tests/functional/pyocf/types/core.py +++ b/tests/functional/pyocf/types/core.py @@ -97,10 +97,16 @@ class Core: return self.handle def get_front_volume(self): - return Volume.get_instance(lib.ocf_core_get_front_volume(self.handle)) + return Volume.get_instance(self.get_c_front_volume()) + + def get_c_front_volume(self): + return lib.ocf_core_get_front_volume(self.handle) def get_volume(self): - return Volume.get_instance(lib.ocf_core_get_volume(self.handle)) + return Volume.get_instance(self.get_c_volume()) + + def get_c_volume(self): + return lib.ocf_core_get_volume(self.handle) def get_default_queue(self): return self.cache.get_default_queue()