@@ -0,0 +1,1137 @@
+import os%0Aimport re%0Aimport sys%0A%0Aif sys.version_info %3C (2, 7):%0A    import unittest2 as unittest%0Aelse:%0A    import unittest%0Aimport shutil%0A%0Aimport configuration%0Afrom resource_suite import ResourceBase%0Aimport lib%0Aimport copy%0A%0Aclass Test_iPhymv(ResourceBase, unittest.TestCase):%0A%0A    def setUp(self):%0A        super(Test_iPhymv, self).setUp()%0A        self.testing_tmp_dir = '/tmp/irods-test-iphymv'%0A        shutil.rmtree(self.testing_tmp_dir, ignore_errors=True)%0A        os.mkdir(self.testing_tmp_dir)%0A%0A    def tearDown(self):%0A        shutil.rmtree(self.testing_tmp_dir)%0A        super(Test_iPhymv, self).tearDown()%0A%0A    def test_iphymv_invalid_resource(self):%0A        filepath = os.path.join(self.admin.local_session_dir, 'file')%0A        lib.make_file(filepath, 1)%0A        dest_path = self.admin.session_collection + '/file'%0A        self.admin.assert_icommand('iput ' + filepath)%0A        self.admin.assert_icommand('iphymv -S invalidResc -R demoResc '+dest_path, 'STDERR_SINGLELINE', 'SYS_RESC_DOES_NOT_EXIST')%0A        self.admin.assert_icommand('iphymv -S demoResc -R invalidResc '+dest_path, 'STDERR_SINGLELINE', 'SYS_RESC_DOES_NOT_EXIST')%0A%0A%0A

test for resource validation