diff src/test/helpers.py @ 647:63b6e684bbfa

tests: Use of FailTest for DifferentArgsException instead of Exception, so the test fail instead of raising en error.
author Goffi <goffi@goffi.org>
date Thu, 26 Sep 2013 17:32:24 +0200
parents 84a6e83157c2
children e20c823f23e2
line wrap: on
line diff
--- a/src/test/helpers.py	Sun Sep 22 01:49:19 2013 +0200
+++ b/src/test/helpers.py	Thu Sep 26 17:32:24 2013 +0200
@@ -19,13 +19,14 @@
 
 import __builtin__
 from twisted.words.protocols.jabber.jid import JID
+from twisted.trial.unittest import FailTest
 
 TEST_JID_STR = u"test@example.org/SàT"
 TEST_JID = JID(u"test@example.org/SàT")
 TEST_PROFILE = 'test_profile'
 
 
-class DifferentArgsException(Exception):
+class DifferentArgsException(FailTest):
     pass