From bbbf55e1c91e6f199b59921a61b3a918e3eabefd Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 11 May 2011 20:52:45 +0300 Subject: [PATCH 1/4] contactinfo-request.py: check the x-irc-server and x-host fields Fixes: https://bugs.freedesktop.org/34796 --- tests/twisted/messages/contactinfo-request.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tests/twisted/messages/contactinfo-request.py b/tests/twisted/messages/contactinfo-request.py index de54d81..1350afe 100644 --- a/tests/twisted/messages/contactinfo-request.py +++ b/tests/twisted/messages/contactinfo-request.py @@ -17,6 +17,11 @@ def validate_vcard(vcard): assertEquals('Test User', value[0]) elif name == 'x-irc-channel': channel_names.append(value[0]) + elif name == 'x-irc-server': + assertEquals('idle.test.server', value[0]) + assertEquals('Idle Test Server', value[1]) + elif name == 'x-host': + assertEquals('localhost', value[0]) elif name == 'x-idle-time': assertEquals('42', value[0]) # fake value elif name == 'nickname': -- 1.7.4.4