#NEWLINE# def test_do_port_show_by_address( self ) : #NEWLINE# #INDENT# client_mock = mock . MagicMock ( ) #NEWLINE# args = mock . MagicMock ( ) #NEWLINE# args . port = 'port_address' #NEWLINE# args . address = True #NEWLINE# args . fields = None #NEWLINE# args . json = False #NEWLINE# p_shell . do_port_show ( client_mock , args ) #NEWLINE# client_mock . port . get_by_address . assert_called_once_with ( 'port_address' , fields = None ) #NEWLINE# self . assertFalse ( client_mock . port . get . called )