diff sat/test/test_plugin_xep_0033.py @ 2765:378188abe941

misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 11:13:15 +0100
parents 56f94936df1e
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat/test/test_plugin_xep_0033.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/test/test_plugin_xep_0033.py	Fri Jan 11 11:13:15 2019 +0100
@@ -145,7 +145,7 @@
             d.addCallback(cb, to_jid)
             d_list.append(d)
 
-        def cb_list(dummy):
+        def cb_list(__):
             msg = "/!\ see the comments in XEP_0033.sendAndStoreMessage"
             sent_recipients = [
                 JID(elt["to"]) for elt in self.host.getSentMessages(PROFILE_INDEX)
@@ -187,7 +187,7 @@
         self.host.addFeature(JID(JID_STR_TO), plugin.NS_ADDRESS, PROFILE)
         data = self._get_mess_data()
         d = self._trigger(data)
-        return d.addCallback(lambda dummy: self._checkSentAndStored())
+        return d.addCallback(lambda __: self._checkSentAndStored())
 
     def test_messageSendTriggerFeatureFullySupported(self):
         # feature is supported by all target servers
@@ -197,7 +197,7 @@
             self.host.addFeature(JID(JID(dest).host), plugin.NS_ADDRESS, PROFILE)
         data = self._get_mess_data()
         d = self._trigger(data)
-        return d.addCallback(lambda dummy: self._checkSentAndStored())
+        return d.addCallback(lambda __: self._checkSentAndStored())
 
     def test_messageSendTriggerFixWrongEntity(self):
         # check that a wrong recipient entity is fixed by the backend
@@ -208,4 +208,4 @@
         data = self._get_mess_data()
         data["to"] = JID(JID_STR_X_TO)
         d = self._trigger(data)
-        return d.addCallback(lambda dummy: self._checkSentAndStored())
+        return d.addCallback(lambda __: self._checkSentAndStored())