def mock_software_secure_post_error(url, headers=None, data=None, **kwargs):
 response = requests.Response()
 response.status_code = 400
 return response

def mock_software_secure_post_error ( url , headers = None , data = None , ** kwargs ) : response = requests . Response ( ) response . status_code = 400 return response
simulates what happens if our post to software secure is rejected .