#NEWLINE# @ mock . patch . object ( FAKE_IRONIC_CLIENT . node , 'list_ports' ) #NEWLINE# @ mock . patch . object ( FAKE_IRONIC_CLIENT . node , 'get' ) #NEWLINE# def test_show_ironic_no_interfaces( self , mock_get , mock_list_ports ) : #NEWLINE# #INDENT# properties = { #NEWLINE# #INDENT# 'cpus' : 1 , #NEWLINE# 'memory_mb' : 512 , #NEWLINE# 'local_gb' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# node = ironic_utils . get_test_node ( properties = properties ) #NEWLINE# mock_get . return_value = node #NEWLINE# mock_list_ports . return_value = [ ] #NEWLINE# res_dict = self . controller . show ( self . request , node . uuid ) #NEWLINE# self . assertEqual ( [ ] , res_dict [ 'node' ] [ 'interfaces' ] ) #NEWLINE# mock_get . assert_called_once_with ( mock_list_ports . uuid ) #NEWLINE# mock_list_ports . assert_called_once_with ( node . uuid )