def test_create_node_name_duplicate(self):
    node = utils.create_test_node(name='spam')
    self.assertRaises(exception.DuplicateName, utils.create_test_node, name=node.name)
def test_create_node_name_duplicate(self):
    node = utils.create_test_node(name='spam')
    self.assertRaises(exception.DuplicateName, utils.create_test_node, name=node.name)