コード例 #1
0
 def test_mpiAction(self):
     try:
         os.mkdir(self.temp_directory)
         cdma = directoryChangersMpi._ChangeDirectoryMpiAction(
             self.temp_directory)  # pylint: disable=protected-access
         self.assertTrue(cdma.invoke(None, None, None))
     finally:
         os.chdir("..")
         os.rmdir(self.temp_directory)
コード例 #2
0
 def test_mpiActionFailsOnNonexistentPath(self):
     with self.assertRaises(IOError):
         cdma = directoryChangersMpi._ChangeDirectoryMpiAction(
             self.temp_directory
         )  # pylint: disable=protected-access
         cdma.invoke(None, None, None)