def testReadIds(self): filename = join(self.tempdir, "test.ids") open(filename, 'w').write("uploadId1\n%0A uploadId2\n uploadId3") self.assertEquals(['uploadId1', '\n uploadId2', ' uploadId3'], readIds(filename))
def mockdelete(self, filename): self.mockdelete_filename = filename self.mockdelete_ids = readIds(filename)