From 4cb87b5b098a42a3e7966ca3aef8e59c78d16408 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 10 Jun 2016 18:36:28 +0000 Subject: [PATCH] An additional photo test, and a test function rename. - Legacy-Id: 11313 --- ietf/group/tests_info.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ietf/group/tests_info.py b/ietf/group/tests_info.py index 98d4100a0..081553e20 100644 --- a/ietf/group/tests_info.py +++ b/ietf/group/tests_info.py @@ -359,7 +359,7 @@ class GroupPagesTests(TestCase): chairs = Role.objects.filter(group__type='wg', group__state='active', name_id='chair') self.assertEqual(len(q('div.photo-thumbnail img')), chairs.count()) - def test_group_photos(self): + def test_wg_photos(self): make_test_data() url = urlreverse("ietf.group.views.group_photos", kwargs={'group_type':'wg', 'acronym':'mars'}) r = self.client.get(url) @@ -368,6 +368,15 @@ class GroupPagesTests(TestCase): roles = Role.objects.filter(group__acronym='mars') self.assertEqual(len(q('div.photo-thumbnail img')), roles.count()) + def test_group_photos(self): + make_test_data() + url = urlreverse("ietf.group.views.group_photos", kwargs={'acronym':'iab'}) + r = self.client.get(url) + self.assertEqual(r.status_code, 200) + q = PyQuery(r.content) + roles = Role.objects.filter(group__acronym='iab') + self.assertEqual(len(q('div.photo-thumbnail img')), roles.count()) + class GroupEditTests(TestCase): def setUp(self): self.charter_dir = os.path.abspath("tmp-charter-dir")