#NEWLINE# def test_setup_share_networks_disabled( self ) : #NEWLINE# #INDENT# ctxt = { #NEWLINE# #INDENT# 'task' : mock . MagicMock ( ) , #NEWLINE# 'config' : { #NEWLINE# #INDENT# consts . SHARE_NETWORKS_CONTEXT_NAME : { #NEWLINE# #INDENT# 'use_share_networks' : False , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# consts . SHARE_NETWORKS_CONTEXT_NAME : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# inst = manila_share_networks . ManilaShareNetworks ( ctxt ) #NEWLINE# expected_ctxt = copy . deepcopy ( inst . context ) #NEWLINE# inst . setup ( ) #NEWLINE# self . assertEqual ( expected_ctxt , inst . context )