diff src/test/test_plugin_xep_0313.py @ 1424:2d8fccec84e8

core (tests): test fixes
author Goffi <goffi@goffi.org>
date Thu, 23 Apr 2015 14:19:43 +0200
parents 069ad98b360d
children d17772b0fe22
line wrap: on
line diff
--- a/src/test/test_plugin_xep_0313.py	Thu Apr 23 13:35:21 2015 +0200
+++ b/src/test/test_plugin_xep_0313.py	Thu Apr 23 14:19:43 2015 +0200
@@ -151,7 +151,7 @@
         """ % (("H_%d" % domish.Element._idCounter), SERVICE)
         start = datetime.datetime(2010, 8, 7, 0, 0, 0, tzinfo=tzutc())
         form = buildForm(start=start)
-        rsm = RSMRequest(max=10)
+        rsm = RSMRequest(max_=10)
         d = self.plugin.queryArchive(SERVICE_JID, form=form, rsm=rsm, profile_key=C.PROFILE[0])
         d.addCallback(lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True))
         return d
@@ -173,7 +173,7 @@
         """ % (("H_%d" % domish.Element._idCounter), SERVICE)
         start = datetime.datetime(2010, 8, 7, 0, 0, 0, tzinfo=tzutc())
         form = buildForm(start=start)
-        rsm = RSMRequest(max=10, after=u'09af3-cc343-b409f')
+        rsm = RSMRequest(max_=10, after=u'09af3-cc343-b409f')
         d = self.plugin.queryArchive(SERVICE_JID, form=form, rsm=rsm, profile_key=C.PROFILE[0])
         d.addCallback(lambda dummy: self.assertEqualXML(self.host.getSentMessageXml(0), xml, True))
         return d