def test_subscribe_to_non_private_group(self):
        request = self.request_factory.post('/', {'group_id': self.group.pk})
        request.user = self.user1
        response = views.handle_group_subscription(request, 'subscribe')
        content = loads(response.content)
        self.assertTrue(content['success'])
        self.assertEqual(
            content['message'],
            '<div>Successfully joined %s.</div>' % self.group.group.name
        )
        self.assertEqual(content['group_id'], self.group.pk)
Correct response when joining a non-private group.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/HandleGroupSubscriptionTest.test_subscribe_to_non_private_group