[svn] commit: r2796 - /branches/trac216/src/bin/xfrin/tests/xfrin_test.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Aug 25 02:13:37 UTC 2010
Author: jinmei
Date: Wed Aug 25 02:13:37 2010
New Revision: 2796
Log:
folded long lines
Modified:
branches/trac216/src/bin/xfrin/tests/xfrin_test.py
Modified: branches/trac216/src/bin/xfrin/tests/xfrin_test.py
==============================================================================
--- branches/trac216/src/bin/xfrin/tests/xfrin_test.py (original)
+++ branches/trac216/src/bin/xfrin/tests/xfrin_test.py Wed Aug 25 02:13:37 2010
@@ -209,23 +209,29 @@
def test_connect(self):
#self.assertEqual(, "")
- self.assertRaises(Exception, self.conn.connect, (TEST_MASTER_IPV4_ADDRESS,53))
+ self.assertRaises(Exception, self.conn.connect,
+ (TEST_MASTER_IPV4_ADDRESS,53))
def test_send(self):
self.conn._socket.close()
self.conn._socket = MockSocket()
- self.assertEqual(len(b"hello bind10"), super(MockXfrinConnection, self.conn).send(b"hello bind10"))
+ self.assertEqual(len(b"hello bind10"),
+ super(MockXfrinConnection,
+ self.conn).send(b"hello bind10"))
def test_send_exception(self):
self.conn._socket.close()
self.conn._socket = MockSocket()
- self.assertRaises(socket.error, super(MockXfrinConnection, self.conn).send, "hello bind10")
+ self.assertRaises(socket.error,
+ super(MockXfrinConnection, self.conn).send,
+ "hello bind10")
def test_recv(self):
self.conn._socket.close()
self.conn._socket = MockSocket()
super(MockXfrinConnection, self.conn).send(b"hello bind10")
- self.assertEqual(b"hello bind10", super(MockXfrinConnection, self.conn).recv(20))
+ self.assertEqual(b"hello bind10",
+ super(MockXfrinConnection, self.conn).recv(20))
def test_recv_nodata(self):
self.conn._socket.close()
@@ -236,13 +242,15 @@
self.conn._socket.close()
self.conn._socket = MockSocket()
super(MockXfrinConnection, self.conn).send(b"hello bind10")
- self.assertRaises(socket.error, super(MockXfrinConnection, self.conn).recv, -1)
+ self.assertRaises(socket.error,
+ super(MockXfrinConnection, self.conn).recv, -1)
def test_loop(self):
self.conn._idle_timeout = 0.1
self.conn.handle_read = self.conn.mock_handle_read
- self.assertRaises(XfrinException, super(MockXfrinConnection, self.conn)._loop)
+ self.assertRaises(XfrinException,
+ super(MockXfrinConnection, self.conn)._loop)
def test_init_ip6(self):
More information about the bind10-changes
mailing list