Skip to content

Commit 4cb87b5

Browse files
committed
An additional photo test, and a test function rename.
- Legacy-Id: 11313
1 parent a9980d5 commit 4cb87b5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

ietf/group/tests_info.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def test_chair_photos(self):
359359
chairs = Role.objects.filter(group__type='wg', group__state='active', name_id='chair')
360360
self.assertEqual(len(q('div.photo-thumbnail img')), chairs.count())
361361

362-
def test_group_photos(self):
362+
def test_wg_photos(self):
363363
make_test_data()
364364
url = urlreverse("ietf.group.views.group_photos", kwargs={'group_type':'wg', 'acronym':'mars'})
365365
r = self.client.get(url)
@@ -368,6 +368,15 @@ def test_group_photos(self):
368368
roles = Role.objects.filter(group__acronym='mars')
369369
self.assertEqual(len(q('div.photo-thumbnail img')), roles.count())
370370

371+
def test_group_photos(self):
372+
make_test_data()
373+
url = urlreverse("ietf.group.views.group_photos", kwargs={'acronym':'iab'})
374+
r = self.client.get(url)
375+
self.assertEqual(r.status_code, 200)
376+
q = PyQuery(r.content)
377+
roles = Role.objects.filter(group__acronym='iab')
378+
self.assertEqual(len(q('div.photo-thumbnail img')), roles.count())
379+
371380
class GroupEditTests(TestCase):
372381
def setUp(self):
373382
self.charter_dir = os.path.abspath("tmp-charter-dir")

0 commit comments

Comments
 (0)