def test_can_get_image(self): key = '/some/path/to/file.jpg' storage = Storage(self.context) self.memcached.set(storage.key_for(key), 'test-data') data = storage.get(key).result() expect(data).to_equal('test-data')