def setUp(self): if os.path.isdir('/tmp/.nvpyUnitTests'): shutil.rmtree('/tmp/.nvpyUnitTests') self.controller = Controller(self.__mock_config())