def test_bind_called_just_with_required_fields(self):
    self.broker.bind.return_value = Binding(credentials=expected_credentials)
    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'}), headers={'X-Broker-Api-Version': '2.13', 'Content-Type': 'application/json', 'Authorization': self.auth_header})
    (actual_instance_id, actual_binding_id, actual_details, async_allowed) = self.broker.bind.call_args[0]
    self.assertEqual(actual_instance_id, 'here-instance_id')
    self.assertEqual(actual_binding_id, 'here-binding_id')
    self.assertIsInstance(actual_details, BindDetails)
    self.assertEqual(actual_details.service_id, 'service-guid-here')
    self.assertEqual(actual_details.plan_id, 'plan-guid-here')
    self.assertIsNone(actual_details.app_guid)
    self.assertIsNone(actual_details.parameters)
    self.assertIsNone(actual_details.bind_resource)
    self.assertFalse(async_allowed)
def test_bind_called_just_with_required_fields(self):
    self.broker.bind.return_value = Binding(credentials=expected_credentials)
    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'}), headers={'X-Broker-Api-Version': '2.13', 'Content-Type': 'application/json', 'Authorization': self.auth_header})
    (actual_instance_id, actual_binding_id, actual_details, async_allowed) = self.broker.bind.call_args[0]
    self.assertEqual(actual_instance_id, 'here-instance_id')
    self.assertEqual(actual_binding_id, 'here-binding_id')
    self.assertIsInstance(actual_details, BindDetails)
    self.assertEqual(actual_details.service_id, 'service-guid-here')
    self.assertEqual(actual_details.plan_id, 'plan-guid-here')
    self.assertIsNone(actual_details.app_guid)
    self.assertIsNone(actual_details.parameters)
    self.assertIsNone(actual_details.bind_resource)
    self.assertFalse(async_allowed)