#NEWLINE# def test_setup( self ) : #NEWLINE# #INDENT# testPeer = peer . Peer ( zmq . Context . instance ( ) , 'local_identity' , 'peer_identity' ) #NEWLINE# testPeer . _setup ( ) #NEWLINE# assert isinstance ( self . _zmq_dealer , zmq . sugar . socket . Socket ) #NEWLINE# assert ( testPeer . _zmq_dealer . getsockopt ( zmq . IDENTITY ) == six . b ( 'local_identity' ) ) #NEWLINE# assert ( testPeer . _zmq_dealer . getsockopt ( zmq . LINGER ) == 0 )