From 0fa2e8df92986bf7cbbba131042c1d3196b54365 Mon Sep 17 00:00:00 2001 From: "ting.wang" Date: Thu, 12 May 2016 10:13:13 +0800 Subject: Refactor TestVolumeShow with FakeVolume In the meantime, add some static methods in FakeVolume for ease of use and add info() method with "property" decorator in FakeResource to allow those static methods to get fake information. Change-Id: I98ad520f32afd529fda77a4592f645130282537f Co-Authored-By: xiexs Implements: blueprint improve-volume-unittest-framework --- openstackclient/tests/fakes.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openstackclient/tests/fakes.py') diff --git a/openstackclient/tests/fakes.py b/openstackclient/tests/fakes.py index 46f983dc..229b4652 100644 --- a/openstackclient/tests/fakes.py +++ b/openstackclient/tests/fakes.py @@ -189,6 +189,10 @@ class FakeResource(object): def keys(self): return self._info.keys() + @property + def info(self): + return self._info + class FakeResponse(requests.Response): -- cgit v1.2.1