summaryrefslogtreecommitdiff
path: root/tests/test_events.py
diff options
context:
space:
mode:
authorFlorian Klien <flowolf@klienux.org>2018-10-08 23:25:23 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-10-15 14:59:23 +0200
commitd33366badde6a2d51be8d731834540c03b9a6c49 (patch)
tree8ecbb3de477371a29e95f1aa4d93b619bfa5f5e4 /tests/test_events.py
parent809c50000204f8724bac80cb3359a690fdbc839e (diff)
downloadslixmpp-d33366badde6a2d51be8d731834540c03b9a6c49.tar.gz
slixmpp-d33366badde6a2d51be8d731834540c03b9a6c49.tar.bz2
slixmpp-d33366badde6a2d51be8d731834540c03b9a6c49.tar.xz
slixmpp-d33366badde6a2d51be8d731834540c03b9a6c49.zip
fixing deprecation warnings for pytest
Diffstat (limited to 'tests/test_events.py')
-rw-r--r--tests/test_events.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_events.py b/tests/test_events.py
index 65494d80..e7a29e71 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -23,7 +23,7 @@ class TestEvents(SlixTest):
self.xmpp.event("test_event")
msg = "Event was not triggered the correct number of times: %s"
- self.failUnless(happened == [True, True], msg)
+ self.assertTrue(happened == [True, True], msg)
def testDelEvent(self):
"""Test handler working, then deleted and not triggered"""
@@ -41,7 +41,7 @@ class TestEvents(SlixTest):
self.xmpp.event("test_event", {})
msg = "Event was not triggered the correct number of times: %s"
- self.failUnless(happened == [True], msg % happened)
+ self.assertTrue(happened == [True], msg % happened)
def testAddDelAddEvent(self):
"""Test adding, then removing, then adding an event handler."""
@@ -61,7 +61,7 @@ class TestEvents(SlixTest):
self.xmpp.event("test_event", {})
msg = "Event was not triggered the correct number of times: %s"
- self.failUnless(happened == [True, True], msg % happened)
+ self.assertTrue(happened == [True, True], msg % happened)
def testDisposableEvent(self):
"""Test disposable handler working, then not being triggered again."""
@@ -78,7 +78,7 @@ class TestEvents(SlixTest):
self.xmpp.event("test_event", {})
msg = "Event was not triggered the correct number of times: %s"
- self.failUnless(happened == [True], msg % happened)
+ self.assertTrue(happened == [True], msg % happened)
suite = unittest.TestLoader().loadTestsFromTestCase(TestEvents)