From d1150f4d020964ddad347d8b0c24ee4340bdbba5 Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Wed, 6 Aug 2008 20:17:00 +0000 Subject: [PATCH] Implement some basic RosterWindow tests. I just want the skeleton to be in place for feature bug fixing :-) --- test/data.py | 35 ++++++++ test/mocks.py | 40 +++++++-- test/test_misc_interface.py | 3 +- test/test_roster.py | 171 ++++++++++++++++++++++++++++++++++++ test/test_sessions.py | 5 +- 5 files changed, 244 insertions(+), 10 deletions(-) create mode 100755 test/data.py create mode 100755 test/test_roster.py diff --git a/test/data.py b/test/data.py new file mode 100755 index 000000000..d7c19af5f --- /dev/null +++ b/test/data.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +account1 = u'acc1' +account2 = u'Cool"chârßéµö' + +contacts = {} +contacts[account1] = { + u'default1@gajim.org': { + 'ask': None, 'groups': [], 'name': None, 'resources': {}, + 'subscription': u'both'}, + u'default2@gajim.org': { + 'ask': None, 'groups': [u'GroupA',], 'name': None, 'resources': {}, + 'subscription': u'both'}, + u'Cool"chârßéµö@gajim.org': { + 'ask': None, 'groups': [u'