From 7323ced8e47c4cd62b74a121121eca5b7f6e3ce6 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Thu, 8 May 2008 16:53:35 -0700
Subject: [PATCH] test_dirnode: improve coverage of not-mutable-error a bit

---
 src/allmydata/test/test_dirnode.py | 4 ++++
 1 file changed, 4 insertions(+)

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,
-- 
2.45.2