Changeset 76:ee1c6d6350ae in ralphm-patches


Ignore:
Timestamp:
Apr 1, 2015, 3:06:31 PM (5 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Use assertEquals

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • async-observer.patch

    r73 r76  
    11# HG changeset patch
    2 # Parent ed052dd5cb7a57faf1693f78457401fd820fdd79
     2# Parent 56607e5ddb53e3fafbecb41118bd220dea9310c7
    33
    44diff --git a/wokkel/subprotocols.py b/wokkel/subprotocols.py
     
    260260+        observer(self, element)
    261261+        self.assertTrue(element.handled)
    262 +        self.assertEqual(1, len(self.output))
     262+        self.assertEquals(1, len(self.output))
    263263+        exc = error.exceptionFromStanza(self.output[-1])
    264 +        self.assertEqual(u'service-unavailable', exc.condition)
     264+        self.assertEquals(u'service-unavailable', exc.condition)
    265265+
    266266+
     
    277277+        observer(self, element)
    278278+        self.assertTrue(element.handled)
    279 +        self.assertEqual(1, len(self.output))
     279+        self.assertEquals(1, len(self.output))
    280280+        exc = error.exceptionFromStanza(self.output[-1])
    281 +        self.assertEqual(u'forbidden', exc.condition)
     281+        self.assertEquals(u'forbidden', exc.condition)
    282282+
    283283+
     
    297297+        observer(self, element)
    298298+        self.assertTrue(element.handled)
    299 +        self.assertEqual(1, len(self.output))
     299+        self.assertEquals(1, len(self.output))
    300300+        exc = error.exceptionFromStanza(self.output[-1])
    301 +        self.assertEqual(u'internal-server-error', exc.condition)
    302 +        self.assertEqual(1, len(self.flushLoggedErrors()))
     301+        self.assertEquals(u'internal-server-error', exc.condition)
     302+        self.assertEquals(1, len(self.flushLoggedErrors()))
    303303+
    304304+
     
    318318+        observer(self, element)
    319319+        self.assertTrue(element.handled)
    320 +        self.assertEqual(1, len(self.output))
     320+        self.assertEquals(1, len(self.output))
    321321+        exc = error.exceptionFromStanza(self.output[-1])
    322 +        self.assertEqual(u'internal-server-error', exc.condition)
    323 +        self.assertEqual(1, len(self.flushLoggedErrors()))
     322+        self.assertEquals(u'internal-server-error', exc.condition)
     323+        self.assertEquals(1, len(self.flushLoggedErrors()))
    324324+
    325325+
     
    340340+        observer(self, element)
    341341+        self.assertTrue(element.handled)
    342 +        self.assertEqual(0, len(self.output))
    343 +        self.assertEqual(1, len(self.flushLoggedErrors()))
     342+        self.assertEquals(0, len(self.output))
     343+        self.assertEquals(1, len(self.flushLoggedErrors()))
    344344+
    345345+
  • series

    r73 r76  
    66listening-authenticator-stream-features.patch #+c2s
    77client_listen_authenticator.patch #+c2s
     8receiving_tls_initializer.patch
    89c2s_server_factory.patch #+c2s
    910
Note: See TracChangeset for help on using the changeset viewer.