summaryrefslogtreecommitdiffstats
path: root/tests/unit/cli/cmd_qpi_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/cli/cmd_qpi_test.py')
-rw-r--r--tests/unit/cli/cmd_qpi_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/cli/cmd_qpi_test.py b/tests/unit/cli/cmd_qpi_test.py
index 7067d62c..3d2c2613 100644
--- a/tests/unit/cli/cmd_qpi_test.py
+++ b/tests/unit/cli/cmd_qpi_test.py
@@ -32,8 +32,9 @@ def test_run(runner):
def test_show(runner):
- result = runner.invoke(cli, ['qpi', 'show', 'fake-qpi'])
- assert result.output == ''
+ result = runner.invoke(cli, ['qpi', 'show', 'compute'])
+ assert 'Name: compute' in result.output
+ assert 'Description: sample performance index of computing' in result.output
result = runner.invoke(cli, ['qpi', 'show'])
assert 'Missing argument "name".' in result.output