in server/store/tests.py [0:0]
def test_cart_invalid_inventory(self):
data = {
"payment": {"method": "collect"},
"customer": {"email": "foo@bar.com"},
"items": [{"id": 111111, "countRequested": 1}],
}
response = client.post(
reverse("checkout"),
json.dumps(data),
content_type="application/json",
)
self.assertEqual(response.status_code, 400)
self.assertEqual(response.json()["status"], "product_not_found")