def test_post_send_error(self):
        with mock.patch('rapidsms.contrib.messaging.forms.MessageForm.send')\
                as send:
            send.side_effect = Exception()
            self.login()
            response = self.client.post(self.url, self.data)
        self.assertEqual(response.status_code, 500)
Return a list of weak references to the values.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/contrib/messaging/tests/test_views.py/TestSendView.test_post_send_error--crossover with--dataset/ETHPy150Open Southpaw-TACTIC/TACTIC/src/context/client/tactic-api-python-4.0.api04/Lib/weakref.py/WeakValueDictionary.valuerefs