From c62baf6b2cfb901109e31e0b34a193b0ece99b79 Mon Sep 17 00:00:00 2001 From: rexlee8776 Date: Mon, 28 Mar 2016 04:35:56 -0400 Subject: add "yardstick testcase show" command function "yardstick testcase show" will show the details of specific test case yardstick testcase show (e.g. yardstick testcase show opnfv_yardstick_tc001) JIRA:- Change-Id: Ibb91625dc3e6802855f28160ee0aa8c7e386cf7a Signed-off-by: rexlee8776 --- tests/unit/cmd/commands/test_testcase.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/unit') diff --git a/tests/unit/cmd/commands/test_testcase.py b/tests/unit/cmd/commands/test_testcase.py index 351e5e79f..c55c367d0 100644 --- a/tests/unit/cmd/commands/test_testcase.py +++ b/tests/unit/cmd/commands/test_testcase.py @@ -17,6 +17,10 @@ import unittest from yardstick.cmd.commands import testcase from yardstick.cmd.commands.testcase import TestcaseCommands +class Arg(object): + def __init__(self): + self.casename=('opnfv_yardstick_tc001',) + class TestcaseCommandsUT(unittest.TestCase): def test_do_list(self): @@ -24,4 +28,9 @@ class TestcaseCommandsUT(unittest.TestCase): result = t.do_list("") self.assertEqual(result, True) + def test_do_show(self): + t = testcase.TestcaseCommands() + casename = Arg() + result = t.do_show(casename) + self.assertEqual(result, True) -- cgit 1.2.3-korg