def test_group_members_excludes_owners(self):
        group = mommy.make('groups.Group')
        owner = self.create_user()
        owner.add_to_group(group.pk)
        group.owners.add(owner)
        member = self.create_user()
        member.add_to_group(group.pk)

        user = self.create_user()
        self.login(user)
        response = self.client.get(
            reverse('group_members', kwargs={'pk': group.pk}))

        self.assertIn(member, response.context['group_members'])
        self.assertNotIn(owner, response.context['group_members'])
The group_members context var should exclude owners.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupMemberListViewTest.test_group_members_excludes_owners