From d33366badde6a2d51be8d731834540c03b9a6c49 Mon Sep 17 00:00:00 2001 From: Florian Klien Date: Mon, 8 Oct 2018 23:25:23 +0200 Subject: fixing deprecation warnings for pytest --- tests/test_stanza_xep_0050.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_stanza_xep_0050.py') 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, """ -- cgit v1.2.3