#NEWLINE# def test_status_super( self ) : #NEWLINE# #INDENT# plugin = mock . Mock ( ) #NEWLINE# plugin_context = mock . Mock ( ) #NEWLINE# network = mock . MagicMock ( ) #NEWLINE# binding = mock . Mock ( ) #NEWLINE# port = { #NEWLINE# #INDENT# 'device_owner' : 'compute' , #NEWLINE# 'status' : 'status' , #NEWLINE# #UNINDENT# } #NEWLINE# binding . status = 'foostatus' #NEWLINE# with mock . patch . object ( driver_context . db , 'get_network_segments' ) : #NEWLINE# #INDENT# ctx = driver_context . PortContext ( plugin , plugin_context , port , network , binding , None ) #NEWLINE# #UNINDENT# self . assertEqual ( 'status' , self . status )