diff options
| author | Badhmapriya Boopalan <Badhmapriya.Boopalan@cognizant.com> | 2016-11-15 19:55:46 +0000 |
|---|---|---|
| committer | Steve Martinelli <s.martinelli@gmail.com> | 2017-01-11 02:09:02 +0000 |
| commit | 6962cc963e6e17e709524ecf6a395e2d0c8b8370 (patch) | |
| tree | 768386a18e543cff9fb36e727550b2b8a7b4df46 /openstackclient/tests/unit/image/v1/fakes.py | |
| parent | 5bf5de6f45a9a96768de9aafdb8cd1bb390389aa (diff) | |
| download | python-openstackclient-6962cc963e6e17e709524ecf6a395e2d0c8b8370.tar.gz | |
To display image size in human friendly format
Include option '--human-readable' to 'image show' command.
This option displays image size in human readable format
(such as K, M, G, T,..)
Related Commit: I0ef74c2ec978483fe49156c88acf5c369a8fa5c2
Closes-Bug: #1640086
Change-Id: I28cd5702925d51303d0607ed8dccf12c56434682
Diffstat (limited to 'openstackclient/tests/unit/image/v1/fakes.py')
| -rw-r--r-- | openstackclient/tests/unit/image/v1/fakes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/image/v1/fakes.py b/openstackclient/tests/unit/image/v1/fakes.py index 080356ee..4b6d278c 100644 --- a/openstackclient/tests/unit/image/v1/fakes.py +++ b/openstackclient/tests/unit/image/v1/fakes.py @@ -34,6 +34,7 @@ image_properties = { } image_properties_str = "Alpha='a', Beta='b', Gamma='g'" image_data = 'line 1\nline 2\n' +image_size = 0 IMAGE = { 'id': image_id, @@ -46,6 +47,7 @@ IMAGE = { 'is_public': image_public, 'protected': image_protected, 'properties': image_properties, + 'size': image_size, } IMAGE_columns = tuple(sorted(IMAGE)) |
