def test_ports_get_destroyed_after_destroying_a_node(self):
    node = utils.create_test_node()
    port = utils.create_test_port(node_id=node.id)
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.PortNotFound, self.dbapi.get_port_by_id, port.id)
def test_ports_get_destroyed_after_destroying_a_node(self):
    node = utils.create_test_node()
    port = utils.create_test_port(node_id=node.id)
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.PortNotFound, self.dbapi.get_port_by_id, port.id)