#NEWLINE# def test_human_readable_ports_public_and_private( self ) : #NEWLINE# #INDENT# self . container_dict [ 'NetworkSettings' ] [ 'Ports' ] . update ( { #NEWLINE# #INDENT# '45454/tcp' : [ { #NEWLINE# #INDENT# 'HostIp' : '0.0.0.0' , #NEWLINE# 'HostPort' : '49197' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# '45453/tcp' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# container = Container ( None , self . container_dict , has_been_inspected = True ) #NEWLINE# expected = '45453/tcp, 0.0.0.0:49197->45454/tcp' #NEWLINE# self . assertEqual ( container . human_readable_ports , expected )