def test_staff_can_direct_message_users(self):
        recipient = self.create_user()
        staff_member = self.create_user(is_staff=True)
        self.login(staff_member)

        # As a staff member, attempt to POST a new direct message to a regular
        # user
        response = self.client.post(
            reverse('create_direct_message',
                    kwargs={'user_uuid': recipient.uuid}),
            {'text': 'hello', 'subject': 'quick dm'}
        )

        # Confirm that the staff member was successfully redirected to the list
        # of threads
        self.assertRedirects(response, reverse('threads'))

        # Confirm that no permission-denied error was thrown
        self.assertNotIn(
            'You don\'t have permission to direct message {user}'.format(
                user=recipient),
            str(response.cookies)
        )

        # Confirm that a new message was created in the database sent by the
        # staff member to the regular user
        self.assertEqual(
            UserThread.objects.filter(
                user=recipient,
                thread__first_message__sender=staff_member).count(),
            1
        )
Returns True if obj was added to the collision manager, false otherwise
dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/DirectMessageCreateViewTest.test_staff_can_direct_message_users--crossover with--dataset/ETHPy150Open los-cocos/cocos/cocos/collision_model.py/CollisionManager.knows