From 31f8296fddbe7d36c87be40c27f36fd3bdccdf26 Mon Sep 17 00:00:00 2001 From: zhangguoqing Date: Tue, 5 Apr 2016 21:45:27 +0800 Subject: [PATCH] Fix api test about AuditTemplate Change-Id: Ib24f353ab92c4f570532d5d20584916d5f304446 --- watcher_dashboard/test/api_tests/watcher_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watcher_dashboard/test/api_tests/watcher_tests.py b/watcher_dashboard/test/api_tests/watcher_tests.py index 9558379..32d3bcb 100644 --- a/watcher_dashboard/test/api_tests/watcher_tests.py +++ b/watcher_dashboard/test/api_tests/watcher_tests.py @@ -31,7 +31,7 @@ class WatcherAPITests(test.APITestCase): ret_val = api.watcher.AuditTemplate.list(self.request, filter=None) for n in ret_val: - self.assertTrue(type(ret_val), 'dict') + self.assertTrue(type(n), 'dict') def test_audit_template_list_with_filters(self): search_opts = 'Audit Template 1' @@ -47,7 +47,7 @@ class WatcherAPITests(test.APITestCase): ret_val = api.watcher.AuditTemplate\ .list(self.request, filter=search_opts) for n in ret_val: - self.assertTrue(type(ret_val), 'dict') + self.assertTrue(type(n), 'dict') self.assertEqual(ret_val, audit_templates) def test_audit_template_get(self):