From: Dylan Baker <baker.dyla...@gmail.com> Signed-off-by: Dylan Baker <dylanx.c.ba...@intel.com> --- unittests/results_tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/unittests/results_tests.py b/unittests/results_tests.py index 6870864..dc004d5 100644 --- a/unittests/results_tests.py +++ b/unittests/results_tests.py @@ -122,6 +122,7 @@ class TestTestResultFromDictAttributes(object): 'result': 'pass', 'dmesg': 'this is some dmesg', 'exception': 'this is an exception', + 'traceback': 'a traceback', } cls.test = results.TestResult.from_dict(dict_) @@ -162,6 +163,10 @@ class TestTestResultFromDictAttributes(object): """dmesgs.TestResult.from_dict: sets exception correctly""" nt.eq_(self.test.exception, 'this is an exception') + def test_traceback(self): + """dmesgs.TestResult.from_dict: sets traceback correctly""" + nt.eq_(self.test.traceback, 'a traceback') + def test_TestResult_result_getter(): """results.TestResult.result: Getter returns the result when there are no subtests""" @@ -211,6 +216,7 @@ class TestTestResult_to_json(object): test.exception = 'an exception' test.dmesg = 'this is dmesg' test.pid = 1934 + test.traceback = 'a traceback' cls.test = test cls.json = test.to_json() @@ -264,6 +270,10 @@ class TestTestResult_to_json(object): """results.TestResult.to_json: Adds the pid attribute""" nt.eq_(self.test.pid, self.json['pid']) + def test_traceback(self): + """results.TestResult.to_json: Adds the traceback attribute""" + nt.eq_(self.test.traceback, self.json['traceback']) + class TestTestResult_from_dict(object): """Tests for the from_dict method.""" -- 2.7.0 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit