From 258952380ed8c5d8ec22cf05dca38417f5d55497 Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Fri, 22 Feb 2019 17:49:02 -0500 Subject: [PATCH] show search on fail --- tests/registrar_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/registrar_test.py b/tests/registrar_test.py index 998f5f2..47e5b10 100644 --- a/tests/registrar_test.py +++ b/tests/registrar_test.py @@ -32,8 +32,8 @@ def test_course(self): def test_search(self): cis_search = self.reg.search({'course_id': 'cis'}) cis_dept = self.reg.department('cis') - self.assertGreater(len(list(cis_dept)), 20) - self.assertGreaterEqual(len(list(cis_search)), 20) + self.assertGreater(len(list(cis_dept)), 20, str(cis_dept)) + self.assertGreaterEqual(len(list(cis_search)), 20, str(cis_search)) def test_search_params(self): params = self.reg.search_params()