def test_returns_200_if_identical_binding_already_exists(self):
    self.broker.bind.return_value = Binding(state=BindState.IDENTICAL_ALREADY_EXISTS)
    response = self.client.put('/v2/service_instances/here-instance_id/service_bindings/here-binding_id', data=json.dumps({'service_id': 'service-guid-here', 'plan_id': 'plan-guid-here', 'bind_resource': {}}), headers={'X-Broker-Api-Version': '2.13', 'Content-Type': 'application/json', 'Authorization': self.auth_header})
    self.assertEqual(response.status_code, http.HTTPStatus.OK)
    self.assertEqual(response.json, dict())
def test_returns_200_if_identical_binding_already_exists(self):
    self.broker.bind.return_value = Binding(state=BindState.IDENTICAL_ALREADY_EXISTS)
    response = self.client.put('/v2/service_instances/here-instance_id/service_bindings/here-binding_id', data=json.dumps({'service_id': 'service-guid-here', 'plan_id': 'plan-guid-here', 'bind_resource': {}}), headers={'X-Broker-Api-Version': '2.13', 'Content-Type': 'application/json', 'Authorization': self.auth_header})
    self.assertEqual(response.status_code, http.HTTPStatus.OK)
    self.assertEqual(response.json, dict())