#NEWLINE# @ mock . patch ( 'base64.b64decode' , return_value = 'ret' ) #NEWLINE# def test_decodeMicrodescriptorIdentifier_pad1( self , mock_b64d ) : #NEWLINE# #INDENT# md = mock . Mock ( ) #NEWLINE# md . identifier = 'tes' #NEWLINE# ret = tools . decodeMicrodescriptorIdentifier ( md ) #NEWLINE# self . assertEqual ( ret , 'ret' ) #NEWLINE# mock_b64d . assert_called_once_with ( 'tes=' )