From: Brian Warner Date: Thu, 8 May 2008 23:53:35 +0000 (-0700) Subject: test_dirnode: improve coverage of not-mutable-error a bit X-Git-Tag: allmydata-tahoe-1.1.0~140 X-Git-Url: https://git.rkrishnan.org/vdrive/frontends/CLI.txt?a=commitdiff_plain;h=7323ced8e47c4cd62b74a121121eca5b7f6e3ce6;p=tahoe-lafs%2Ftahoe-lafs.git test_dirnode: improve coverage of not-mutable-error a bit --- diff --git a/src/allmydata/test/test_dirnode.py b/src/allmydata/test/test_dirnode.py index d9088495..62f69398 100644 --- a/src/allmydata/test/test_dirnode.py +++ b/src/allmydata/test/test_dirnode.py @@ -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,