#NEWLINE# def test_change_port( self ) : #NEWLINE# #INDENT# port = self . store . bind_port ( 'foo' ) #NEWLINE# another_port = port_for . select_random ( ) #NEWLINE# assert ( port != another_port ) #NEWLINE# self . assertRaises ( port_for . PortForException , self . store . bind_port , 'foo' , another_port )