def test_invalid_post(self):
        msg = self.create_outgoing_message()
        query = {'message_id': msg.id,
                 'identity': msg.connections[0].identity,
                 'status': 3,
                 'status_text': 'Success',
                 'smsc': 'usb0-modem',
                 'sms_id': self.random_string(36),
                 'date_sent': now()}
        url = reverse('kannel-delivery-report')
        response = self.client.get(url, query)
        self.assertEqual(400, response.status_code)
Make a directory into which to place temporary files.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/backends/kannel/tests.py/KannelDeliveryReportTest.test_invalid_post--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_release.py/BookBuilderTests.setUp