d.addCallback(lambda res:
self.shouldFail(ExistingChildError, "set_node",
"child 'file1' already exists",
- root_node.set_node, u"file1",
- filenode, overwrite=False))
+ root_node.set_node, u"file1",
+ filenode, overwrite=False))
# If we try with a directory, we should see the same thing
d.addCallback(lambda res:
self.shouldFail(ExistingChildError, "set_node",
root_node.set_node, u'dir1', filenode,
overwrite=False))
d.addCallback(lambda res:
- root_node.set_node(u'file1', filenode,
- overwrite="only-files"))
+ root_node.set_node(u'file1', filenode,
+ overwrite="only-files"))
d.addCallback(lambda res:
- self.shouldFail(ExistingChildError, "set_node",
+ self.shouldFail(ExistingChildError, "set_node",
"child 'dir1' already exists",
root_node.set_node, u'dir1', filenode,
overwrite="only-files"))