diff options
Diffstat (limited to 'testing/tests')
-rw-r--r-- | testing/tests/server/test_incoming_resource.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/tests/server/test_incoming_resource.py b/testing/tests/server/test_incoming_resource.py index 16e1e720..0d4918b9 100644 --- a/testing/tests/server/test_incoming_resource.py +++ b/testing/tests/server/test_incoming_resource.py @@ -50,3 +50,8 @@ class IncomingResourceTestCase(unittest.TestCase): doc = self.couchdb.put_doc.call_args[0][0] self.assertEquals(doc_id, doc.doc_id) self.assertEquals(formatter.format(content, scheme), doc.content) + + def test_formatter(self): + formatter = IncomingFormatter() + formatted = formatter.format('content', EncryptionSchemes.PUBKEY) + self.assertEquals(formatted['_enc_scheme'], EncryptionSchemes.PUBKEY) |