def test_invalid_response(self):
        data = {'invalid-phone': '1112223333', 'message': 'hi there'}
        response = self.client.post(reverse('vumi-backend'), json.dumps(data),
                                    content_type='text/json')
        self.assertEqual(response.status_code, 400)
Set some commonly used variables.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/backends/vumi/tests.py/VumiViewTest.test_invalid_response--crossover with--dataset/ETHPy150Open wreckage/django-happenings/happenings/utils/calendars.py/LegacyGenericCalendar.formatday