def METHOD_NAME(self):
    files = (MyTemporaryUploadedFile(file=open(self.txt_file_path, 'rb'), name=self.txt_file_path))
    resource.add_resource_files(self.pid, files)
    _ = self.getResourceFile(self.pid, "text.txt")