def test_set_shutdown_long(self):
"""
On Python 2 :py:obj:`Connection.set_shutdown` accepts an argument
of type :py:obj:`long` as well as :py:obj:`int`.
"""
connection = Connection(Context(TLSv1_METHOD), socket())
connection.set_shutdown(long(RECEIVED_SHUTDOWN))
self.assertEquals(connection.get_shutdown(), RECEIVED_SHUTDOWN)
评论列表
文章目录