summaryrefslogtreecommitdiff
path: root/tests/test_stanza_presence.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_presence.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_presence.py')
-rw-r--r--tests/test_stanza_presence.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_stanza_presence.py b/tests/test_stanza_presence.py
index 73aaba97..7bb41b3a 100644
--- a/tests/test_stanza_presence.py
+++ b/tests/test_stanza_presence.py
@@ -15,7 +15,7 @@ class TestPresenceStanzas(SlixTest):
p = self.Presence()
p['type'] = 'available'
self.check(p, "<presence />")
- self.failUnless(p['type'] == 'available',
+ self.assertTrue(p['type'] == 'available',
"Incorrect presence['type'] for type 'available': %s" % p['type'])
for showtype in ['away', 'chat', 'dnd', 'xa']:
@@ -23,7 +23,7 @@ class TestPresenceStanzas(SlixTest):
self.check(p, """
<presence><show>%s</show></presence>
""" % showtype)
- self.failUnless(p['type'] == showtype,
+ self.assertTrue(p['type'] == showtype,
"Incorrect presence['type'] for type '%s'" % showtype)
p['type'] = None
@@ -47,10 +47,10 @@ class TestPresenceStanzas(SlixTest):
c.add_event_handler("changed_status", handlechangedpresence)
c._handle_presence(p)
- self.failUnless(happened == [],
+ self.assertTrue(happened == [],
"changed_status event triggered for extra unavailable presence")
roster = c.roster['crap@wherever']
- self.failUnless(roster['bill@chadmore.com'].resources == {},
+ self.assertTrue(roster['bill@chadmore.com'].resources == {},
"Roster updated for superfulous unavailable presence")
def testNickPlugin(self):