#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# mock_user = user . User ( id = 1 , roles = patcher . _roles ) #NEWLINE# patcher = mock . patch ( 'openstack_auth.utils.get_user' , return_value = mock_user ) #NEWLINE# self . MockClass = patcher . start ( ) #NEWLINE# self . addCleanup ( patcher . stop ) #NEWLINE# self . request = http . HttpRequest ( )