class BitStoreTest(object): def __init__(self): self.photostore = BitStore(True) self.photostore.create() def test_bits(self, srcfile, dstfile): (key, url) = self.photostore.put(srcfile) print 'File stored, key is %s, url %s\n' % (key, url) if key: self.photostore.get(key, dstfile)
def __init__(self): self.photostore = BitStore(True) self.photostore.create()