def test_volume_connector_get_destroyed_after_destroying_a_node(self):
    node = utils.create_test_node()
    connector = utils.create_test_volume_connector(node_id=node.id)
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.VolumeConnectorNotFound, self.dbapi.get_volume_connector_by_id, connector.id)
def test_volume_connector_get_destroyed_after_destroying_a_node(self):
    node = utils.create_test_node()
    connector = utils.create_test_volume_connector(node_id=node.id)
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.VolumeConnectorNotFound, self.dbapi.get_volume_connector_by_id, connector.id)