def topic(self): config = Config() context = Context(config=config) context.request = RequestParameters(url='image.jpg') fs = NoStorage(context) return fs.put(100)
def topic(self): config = Config() context = Context(config=config) context.request = RequestParameters(url="image.jpg") fs = NoStorage(context) return fs.put(100)
def test_can_put_image(self): fs = NoStorage(self.context) result = fs.put(100) expect(result).to_equal('')