#NEWLINE# def test_validate_provider_segment_with_missing_physical_network( self ) : #NEWLINE# #INDENT# segment = { #NEWLINE# #INDENT# api . NETWORK_TYPE : p_const . TYPE_VLAN , #NEWLINE# api . SEGMENTATION_ID : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( exc . InvalidInput , segment . driver . validate_provider_segment , segment )