#NEWLINE# def test_bind_socket( self ) : #NEWLINE# #INDENT# address = ( 'ipc:///tmp/pelita-test-bind-socket-%s' % uuid . uuid4 ( ) ) #NEWLINE# context = zmq . Context ( ) #NEWLINE# socket = context . socket ( zmq . PUB ) #NEWLINE# bind_socket ( socket , address ) #NEWLINE# self . assertRaises ( zmq . ZMQError , bind_socket , socket , 'bad-address' , '--publish' ) #NEWLINE# socket . close ( )