def test_only_images_posted_to_group_available(self):
        response = self.client.get(
            reverse('group_images', kwargs={'group_id': self.group1.pk}))
        self.assertContains(response, self.message1img.get_thumbnail)
        self.assertContains(
            response,
            reverse('image', kwargs={'image_uuid': self.message1img.uuid})
        )
        self.assertNotContains(response, self.message3img.get_thumbnail)
        self.assertNotContains(
            response,
            reverse('image', kwargs={'image_uuid': self.message3img.uuid})
        )
Only images posted to a group should be in the group gallery.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupImagesViewTest.test_only_images_posted_to_group_available