#NEWLINE# def test_listen_tcp_integer( self ) : #NEWLINE# #INDENT# reactor = MemoryReactor ( ) #NEWLINE# result = listen_tcp ( self . port , self . host , Factory , reactor = reactor ) #NEWLINE# assert ( result . getHost ( ) . port == self . port ) #NEWLINE# assert ( reactor . tcpServers [ 0 ] [ 0 ] == self . port )