summaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-02-19 17:54:03 -0500
committerThomas Bruederli <bruederli@kolabsys.com>2014-02-19 17:54:03 -0500
commit66baddf10c099c8b0c287c267e58afeec387d520 (patch)
treefc0b921858574f9e3f7beacbe2075cb1d3bf970c /tests/functional
parente6deec8a14428b9550c38ba09338c8222ed9035c (diff)
downloadpykolab-66baddf10c099c8b0c287c267e58afeec387d520.tar.gz
Refactored wallace/module_resource:
- moved functional blocks into actual functions for better testing - limit processing to the resource that received the given message (each resource will receive this invitation and respond individually) - simplified the code, reduced duplication
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/test_wallace/test_005_resource_invitation.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/functional/test_wallace/test_005_resource_invitation.py b/tests/functional/test_wallace/test_005_resource_invitation.py
index cf1cfc6..4b6900e 100644
--- a/tests/functional/test_wallace/test_005_resource_invitation.py
+++ b/tests/functional/test_wallace/test_005_resource_invitation.py
@@ -59,8 +59,17 @@ END:VCALENDAR
class TestResourceInvitation(unittest.TestCase):
+ john = None
+
+ @classmethod
+ def setUp(self):
+ """ Compatibility for twisted.trial.unittest
+ """
+ if not self.john:
+ self.setup_class()
+
@classmethod
- def setUpClass(self):
+ def setup_class(self, *args, **kw):
from tests.functional.purge_users import purge_users
purge_users()