@@ -0,0 +1,995 @@
+import os%0Aimport re%0Aimport sys%0A%0Aif sys.version_info %3C (2, 7):%0A    import unittest2 as unittest%0Aelse:%0A    import unittest%0A%0Aimport configuration%0Afrom resource_suite import ResourceBase%0Aimport lib%0A%0A%0Aclass Test_iChmod(ResourceBase, unittest.TestCase):%0A    def setUp(self):%0A        super(Test_iChmod, self).setUp()%0A%0A    def tearDown(self):%0A        super(Test_iChmod, self).tearDown()%0A%0A    def test_ichmod_r(self):%0A        self.admin.assert_icommand('imkdir -p sub_dir1%5C%5C%5C%5C%25/subdir2/')%0A        self.admin.assert_icommand('ichmod read ' + self.user0.username + ' -r sub_dir1%5C%5C%5C%5C%25/')%0A        self.admin.assert_icommand('ichmod inherit -r sub_dir1%5C%5C%5C%5C%25/')%0A        filepath = os.path.join(self.admin.local_session_dir, 'file')%0A        lib.make_file( filepath, 1 )%0A        self.admin.assert_icommand('iput ' + filepath + ' sub_dir1%5C%5C%5C%5C%25/subdir2/')%0A        self.user0.assert_icommand('iget ' + self.admin.session_collection + '/sub_dir1%5C%5C%5C%5C%25/subdir2/file ' + os.path.join(self.user0.local_session_dir, ''))%0A

test for ichmod -r