services/presence/test_psutils: trivial check for pubkey_to_keyid()

This commit is contained in:
Simon McVittie 2007-05-29 16:10:19 +01:00
parent ea892796ae
commit 2f8ef7bd3b

View File

@ -1,4 +1,8 @@
from psutils import escape_identifier print "Running test_psutils..."
from psutils import escape_identifier, pubkey_to_keyid
assert pubkey_to_keyid('abc') == 'a9993e364706816aba3e25717850c26c9cd0d89d'
assert escape_identifier('') == '_' assert escape_identifier('') == '_'
assert escape_identifier('_') == '_5f' assert escape_identifier('_') == '_5f'