'If the call to the E-Commerce API times out, the view should log an error and return an HTTP 503 status.'

def test_ecommerce_api_timeout(self):

    with mock_create_basket(exception=exceptions.Timeout):
        response = self._post_to_view()
    self.assertValidEcommerceInternalRequestErrorResponse(response)
    self.assertUserNotEnrolled()
