'Ports without addresses on non-routed networks are not deferred'

def test_port_without_ip_not_deferred(self):

    with self.network() as network:
        pass
    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'})
    port = self.deserialize(self.fmt, response)
    request = self.new_show_request('ports', port['port']['id'])
    response = self.deserialize(self.fmt, request.get_response(self.api))
    self.assertEqual([], response['port']['fixed_ips'])
    self.assertEqual(ip_allocation.IP_ALLOCATION_IMMEDIATE, response['port'][ip_allocation.IP_ALLOCATION])
