#NEWLINE# @ mock . patch ( 'nova.objects.Instance.save' ) #NEWLINE# def test_evacuate_not_shared_pass_generated( self , mock_save ) : #NEWLINE# #INDENT# res = self . _get_evacuate_response ( { #NEWLINE# #INDENT# 'host' : 'my-host' , #NEWLINE# 'onSharedStorage' : 'False' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( CONF . password_length , len ( res [ 'adminPass' ] ) )