[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/js] Use assertEqual instead of assertIsNone.



commit 6379d7023fe0c62d3285c9129cfa5e6af04156dc
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sat Apr 7 11:54:47 2012 -0600

    Use assertEqual instead of assertIsNone.
    
    assertEqual is only in Python 2.7.
---
 connector-test.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/connector-test.py b/connector-test.py
index d1a6bda..b19fcc6 100755
--- a/connector-test.py
+++ b/connector-test.py
@@ -74,11 +74,11 @@ class TestWebSocketDecoder(unittest.TestCase):
     def test_empty_feed(self):
         """Test that the decoder can handle a zero-byte feed."""
         dec = WebSocketDecoder()
-        self.assertIsNone(dec.read_frame())
+        self.assertEqual(dec.read_frame(), None)
         dec.feed("")
-        self.assertIsNone(dec.read_frame())
+        self.assertEqual(dec.read_frame(), None)
         dec.feed("\x81\x05H")
-        self.assertIsNone(dec.read_frame())
+        self.assertEqual(dec.read_frame(), None)
         dec.feed("ello")
         self.assertEqual(read_frames(dec), [(True, 1, u"Hello")])
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits