summaryrefslogtreecommitdiff
path: root/tests/test_stanza_xep_0050.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_stanza_xep_0050.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_stanza_xep_0050.py')
-rw-r--r--tests/test_stanza_xep_0050.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_stanza_xep_0050.py b/tests/test_stanza_xep_0050.py
index 0898b136..ea7616f9 100644
--- a/tests/test_stanza_xep_0050.py
+++ b/tests/test_stanza_xep_0050.py
@@ -17,13 +17,13 @@ class TestAdHocCommandStanzas(SlixTest):
iq['command']['node'] = 'foo'
iq['command']['action'] = 'execute'
- self.failUnless(iq['command']['action'] == 'execute')
+ self.assertTrue(iq['command']['action'] == 'execute')
iq['command']['action'] = 'complete'
- self.failUnless(iq['command']['action'] == 'complete')
+ self.assertTrue(iq['command']['action'] == 'complete')
iq['command']['action'] = 'cancel'
- self.failUnless(iq['command']['action'] == 'cancel')
+ self.assertTrue(iq['command']['action'] == 'cancel')
def testSetActions(self):
"""Test setting next actions in a command stanza."""
@@ -98,7 +98,7 @@ class TestAdHocCommandStanzas(SlixTest):
('error', "I can't let you do that")]
iq['command']['notes'] = notes
- self.failUnless(iq['command']['notes'] == notes,
+ self.assertTrue(iq['command']['notes'] == notes,
"Notes don't match: %s %s" % (notes, iq['command']['notes']))
self.check(iq, """