]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_dirnode: improve coverage of not-mutable-error a bit
authorBrian Warner <warner@allmydata.com>
Thu, 8 May 2008 23:53:35 +0000 (16:53 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 8 May 2008 23:53:35 +0000 (16:53 -0700)
src/allmydata/test/test_dirnode.py

index d9088495ef6d61af899abe7200c60783b23302d8..62f693986772db1ffb301002dadbd1f6b22bbced 100644 (file)
@@ -138,12 +138,16 @@ class Dirnode(unittest.TestCase, testutil.ShouldFailMixin, testutil.StallMixin):
                             ro_dn.set_uri, u"newchild", fileuri)
             self.shouldFail(dirnode.NotMutableError, "set_uri ro", None,
                             ro_dn.set_node, u"newchild", filenode)
+            self.shouldFail(dirnode.NotMutableError, "set_nodes ro", None,
+                            ro_dn.set_nodes, [ (u"newchild", filenode) ])
             self.shouldFail(dirnode.NotMutableError, "set_uri ro", None,
                             ro_dn.add_file, u"newchild", uploadable)
             self.shouldFail(dirnode.NotMutableError, "set_uri ro", None,
                             ro_dn.delete, u"child")
             self.shouldFail(dirnode.NotMutableError, "set_uri ro", None,
                             ro_dn.create_empty_directory, u"newchild")
+            self.shouldFail(dirnode.NotMutableError, "set_metadata_for ro", None,
+                            ro_dn.set_metadata_for, u"child", {})
             self.shouldFail(dirnode.NotMutableError, "set_uri ro", None,
                             ro_dn.move_child_to, u"child", rw_dn)
             self.shouldFail(dirnode.NotMutableError, "set_uri ro", None,