diff options
author | Giovane <giovaneliberato@gmail.com> | 2016-03-01 16:21:23 -0300 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2016-03-01 16:22:53 -0300 |
commit | e74cf4898f0274de22d5e11186af664f9f5f2003 (patch) | |
tree | 4c432a3396823b555f0c6f498b2bc10651867943 /service/test/unit/resources | |
parent | 1f613c23c16f6b34bcfd064791a3da7591ac19da (diff) |
Fix tests after change on OpenPGPKey.get_json API
- The main identifier of a key now is the fingerprint, not the id
anymore
- The address is not required anymore when creating the json
Diffstat (limited to 'service/test/unit/resources')
-rw-r--r-- | service/test/unit/resources/test_keys_resources.py | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/service/test/unit/resources/test_keys_resources.py b/service/test/unit/resources/test_keys_resources.py index 6aa822e1..2bf53cb4 100644 --- a/service/test/unit/resources/test_keys_resources.py +++ b/service/test/unit/resources/test_keys_resources.py @@ -44,20 +44,16 @@ class TestKeysResource(unittest.TestCase): d = self.web.get(request) expected = { - "tags": ["keymanager-key"], - "fingerprint": '', - "private": False, - 'sign_used': False, - 'refreshed_at': 0, - "expiry_date": 0, - "address": 'some@key', - 'encr_used': False, - 'last_audited_at': 0, - 'key_data': '', - 'length': 0, - 'key_id': '', - 'validation': 'Weak_Chain', - 'type': 'OpenPGPKey', + u'address': u'some@key', + u'encr_used': False, + u'fingerprint': u'', + u'last_audited_at': 0, + u'private': False, + u'sign_used': False, + u'tags': [u'keymanager-active'], + u'type': u'OpenPGPKey-active', + u'validation': u'Weak_Chain', + u'version': 1, } def assert_response(_): |