#NEWLINE# @ patch . object ( FakeIdentityProvider , 'get_identity' ) #NEWLINE# def test_identity( self , get_identity ) : #NEWLINE# #INDENT# cleaver = Cleaver ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , FakeIdentityProvider ( ) , FakeBackend ( ) ) #NEWLINE# get_identity . return_value = 'ABC123' #NEWLINE# assert ( cleaver . identity == 'ABC123' )