예제 #1
0
    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))
예제 #2
0
 def mockdelete(self, filename):
     self.mockdelete_filename = filename
     self.mockdelete_ids = readIds(filename)