def registerProducer(self, producer, streaming): if not streaming: raise NotImplementedError("Non-streaming producer not supported.") # we write the data to a temporary file, since Tahoe can't do # streaming upload yet. self.f = EncryptedTemporaryFile() return None
def test_encrypted_tempfile(self): f = EncryptedTemporaryFile() f.write(b"foobar") f.close()