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)
def test_mpiActionFailsOnNonexistentPath(self): with self.assertRaises(IOError): cdma = directoryChangersMpi._ChangeDirectoryMpiAction( self.temp_directory ) # pylint: disable=protected-access cdma.invoke(None, None, None)