def test_known_checkout_unknown_at_paydirekt(self):
client = Client()
self._create_test_checkout(checkout_id='123-abc-notfound-paydirekt')
post_data = {'checkoutId': '123-abc-notfound-paydirekt', 'merchantOrderReferenceNumber': '123-abc-notfound-paydirekt', 'checkoutStatus': 'APPROVED'}
response = client.post('/paydirekt/notify/', data=json.dumps(post_data), content_type='application/hal+json')
self.assertEqual(response.status_code, 400)
评论列表
文章目录