#NEWLINE# @ patch ( 'pyrax.manager.BaseManager' , new = fakes . FakeManager ) #NEWLINE# def test_delete_database_for_instance( self ) : #NEWLINE# #INDENT# clt = self . client #NEWLINE# inst = self . instance #NEWLINE# inst . delete_database = Mock ( ) #NEWLINE# nm = utils . random_unicode ( ) #NEWLINE# clt . delete_database ( inst , nm ) #NEWLINE# inst . delete_database . assert_called_once_with ( nm )