diff sat/test/test_plugin_xep_0313.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_0313.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/test/test_plugin_xep_0313.py	Fri Jan 11 11:13:15 2019 +0100
@@ -57,7 +57,7 @@
         )
         d = self.plugin.queryArchive(self.client, MAMRequest(), SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -74,7 +74,7 @@
             self.client, MAMRequest(node="fdp/submitted/capulet.lit/sonnets"), SERVICE_JID
         )
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -99,7 +99,7 @@
         form = buildForm(with_jid=JID("juliet@capulet.lit"))
         d = self.plugin.queryArchive(self.client, MAMRequest(form), SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -129,7 +129,7 @@
         form = buildForm(start=start, end=end)
         d = self.plugin.queryArchive(self.client, MAMRequest(form), SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -155,7 +155,7 @@
         form = buildForm(start=start)
         d = self.plugin.queryArchive(self.client, MAMRequest(form), SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -185,7 +185,7 @@
         rsm = RSMRequest(max_=10)
         d = self.plugin.queryArchive(self.client, MAMRequest(form, rsm), SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -212,7 +212,7 @@
         rsm = RSMRequest(max_=10, after=u"09af3-cc343-b409f")
         d = self.plugin.queryArchive(self.client, MAMRequest(form, rsm), SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -227,7 +227,7 @@
         )
         d = self.plugin.queryFields(self.client, SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -267,7 +267,7 @@
         form = buildForm(extra_fields=extra_fields)
         d = self.plugin.queryArchive(self.client, MAMRequest(form), SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -285,7 +285,7 @@
         )
         d = self.plugin.getPrefs(self.client, SERVICE_JID)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d
 
@@ -309,6 +309,6 @@
         never = [JID("montague@montague.lit")]
         d = self.plugin.setPrefs(self.client, SERVICE_JID, always=always, never=never)
         d.addCallback(
-            lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
+            lambda __: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True)
         )
         return d