def test_add_user_to_group_adds_user(self):
        user = self.create_user()
        group = mommy.make(Group)
        add_user_to_group.delay(user.pk, group.pk)
        self.assertTrue(
            Subscription.objects.filter(user=user, group=group).exists())
        self.assertIn(group, user.groups_joined)
Test adding a user to a group.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/TestAddUserToGroup.test_add_user_to_group_adds_user