def test_tags_get_destroyed_after_destroying_a_node(self):
    node = utils.create_test_node()
    tag = utils.create_test_node_tag(node_id=node.id)
    self.assertTrue(self.dbapi.node_tag_exists(node.id, tag.tag))
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.NodeNotFound, self.dbapi.node_tag_exists, node.id, tag.tag)
def test_tags_get_destroyed_after_destroying_a_node(self):
    node = utils.create_test_node()
    tag = utils.create_test_node_tag(node_id=node.id)
    self.assertTrue(self.dbapi.node_tag_exists(node.id, tag.tag))
    self.dbapi.destroy_node(node.id)
    self.assertRaises(exception.NodeNotFound, self.dbapi.node_tag_exists, node.id, tag.tag)