Merge "Fix issue when displaying image_member"

This commit is contained in:
Jenkins 2015-11-11 21:46:07 +00:00 committed by Gerrit Code Review
commit 51f38f5cde

View File

@ -150,3 +150,11 @@ class FakeResponse(requests.Response):
self._content = json.dumps(data)
if not isinstance(self._content, six.binary_type):
self._content = self._content.encode()
class FakeModel(dict):
def __getattr__(self, key):
try:
return self[key]
except KeyError:
raise AttributeError(key)