def test_bails_out_with_existing_subscription(self):
        user = mommy.make(User)
        group = mommy.make(Group)
        mommy.make(Subscription, user=user, group=group)
        thread = self.create_thread(recipient=user)
        UserThread.objects.filter(
            thread=thread, user=user).update(status='deleted')

        add_user_to_group.delay(user.pk, group.pk)

        with patch.object(tasks, 'send_system_message') as mock:
            add_user_to_group.delay(
                user.pk,
                group.pk,
                notification=('test', 'test')
            )
            self.assertEqual(mock.delay.call_count, 0)
Get a url to a RDP Console.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/TestAddUserToGroup.test_bails_out_with_existing_subscription--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/compute/cells_api.py/ComputeCellsAPI.get_rdp_console