

def update_port(self, port, body=None):
    self.show_port(port)
    self._fake_ports[port].update(body['port'])
    return {
        'port': self._fake_ports[port],
    }

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_neutron_security_groups.py MockClient.update_port/original