#NEWLINE# def _create_port_context_bad( self ) : #NEWLINE# #INDENT# 'Creates port context with badly formed vendor info.' #NEWLINE# name = PORT_NAME #NEWLINE# port_id = PORT_ID #NEWLINE# vnic_type = VNIC_DIRECT #NEWLINE# profile = { #NEWLINE# #INDENT# 'pci_vendor_info' : PCI_INFO_BAD_NIC , #NEWLINE# #UNINDENT# } #NEWLINE# network_context = FakeNetworkContext ( [ VLAN_SEGMENT ] ) #NEWLINE# port_context = FakePortContext ( name , port_id , vnic_type , profile , network_context ) #NEWLINE# return port_context