From ef583dedea7f5396d4f83b9a6d9c2f2de36243a4 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sun, 15 Feb 2015 18:12:04 +0000 Subject: [PATCH] Tests - Update template.t to include assertValidJSONOutput --- test/template.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/template.t b/test/template.t index 36466df23..dbd92965c 100644 --- a/test/template.t +++ b/test/template.t @@ -153,6 +153,10 @@ sys.exit(0) hook.assertTriggeredCount(1) hook.assertExitcode(0) + # Ensure output from hook is valid JSON + # (according to python's JSON parser) + hook.assertValidJSONOutput() + # Some message output from the hook self.assertEqual(logs["output"]["msgs"][0], "Hello from the template hook")