{"key": "value"}))
d.addCallback(lambda res: n.get_metadata_for(u"c4"))
d.addCallback(lambda metadata:
- self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
+ self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
(metadata['key'] == "value"), metadata))
d.addCallback(lambda res: n.delete(u"c2"))
{"key": "value"}))
d.addCallback(lambda res: n.get_metadata_for(u"d4"))
d.addCallback(lambda metadata:
- self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
+ self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
(metadata['key'] == "value"), metadata))
d.addCallback(lambda res: n.delete(u"d2"))
self.failUnlessEqual(set(metadata.keys()),
set(["tahoe", "ctime", "mtime"])))
d.addCallback(lambda res: n.get_metadata_for(u"e2"))
- d.addCallback(lambda metadata:
+ d.addCallback(lambda metadata:
self.failUnlessEqual(set(metadata.keys()), set(['tahoe'])))
d.addCallback(lambda res: n.get_metadata_for(u"e3"))
d.addCallback(lambda metadata:
- self.failUnless((set(metadata.keys()) == set(["key", "tahoe"]))
+ self.failUnless((set(metadata.keys()) == set(["key", "tahoe"]))
and (metadata['key'] == "value"), metadata))
d.addCallback(lambda res: n.delete(u"e1"))
lambda metadata: self.failUnlessEqual(set(metadata.keys()), set(['tahoe'])))
d.addCallback(lambda res: n.get_metadata_for(u"f3"))
d.addCallback(lambda metadata:
- self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
+ self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
(metadata['key'] == "value"), metadata))
d.addCallback(lambda res: n.delete(u"f1"))
self.failUnless(IFileNode.providedBy(newnode)))
d.addCallback(lambda res: n.get_metadata_for(u"newfile-metadata"))
d.addCallback(lambda metadata:
- self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
+ self.failUnless((set(metadata.keys()) == set(["key", "tahoe"])) and
(metadata['key'] == "value"), metadata))
d.addCallback(lambda res: n.delete(u"newfile-metadata"))