'Binding information provided, host connected to multiple segments'

def test_port_create_on_multiconnected_host(self):

    (network, segments, subnets) = self._create_test_segments_with_subnets(2)
    self._setup_host_mappings([(segments[0]['segment']['id'], 'fakehost'), (segments[1]['segment']['id'], 'fakehost')])
    response = self._create_port(self.fmt, net_id=network['network']['id'], tenant_id=network['network']['tenant_id'], arg_list=(portbindings.HOST_ID,), **{portbindings.HOST_ID: 'fakehost'})
    res = self.deserialize(self.fmt, response)
    self.assertEqual(webob.exc.HTTPConflict.code, response.status_int)
    self.assertEqual(segment_exc.HostConnectedToMultipleSegments.__name__, res['NeutronError']['type'])
