#NEWLINE# @ pytest . yield_fixture ( autouse = True ) #NEWLINE# def patch_namespace( self ) : #NEWLINE# #INDENT# self . namespace = 'the_namespace' #NEWLINE# patcher = mock . patch ( 'staticconf.config.get_namespace' , autospec = True ) #NEWLINE# with patcher as self . mock_get_namespace : #NEWLINE# #INDENT# ( yield )