From 2ea5b33bab78dfc7608ed8980a9ec846e42098ab Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Tue, 13 Dec 2016 23:27:55 +0800 Subject: Add unit test for `describe` method Change-Id: I6d37ab283d7fcfb0c15dd8065121b706dd80392b Signed-off-by: Yujun Zhang --- tests/unit/runner/suite_test.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/unit/runner/suite_test.py') diff --git a/tests/unit/runner/suite_test.py b/tests/unit/runner/suite_test.py index 10205801..acfed82c 100644 --- a/tests/unit/runner/suite_test.py +++ b/tests/unit/runner/suite_test.py @@ -40,3 +40,9 @@ class TestSuite: assert Property.DESCRIPTION in suite_desc assert Property.ABSPATH in suite_desc assert Property.ABSPATH is not None + + def test_describe(self): + desc = Suite('suite-a').describe() + assert Property.NAME in desc + assert Property.DESCRIPTION in desc + assert Property.ABSPATH in desc -- cgit 1.2.3-korg