@patch('flask_views.db.mongoengine.edit.redirect')
    def test_delete(self, redirect):
        mixin = DeletionMixin()
        mixin.object = Mock()
        mixin.get_success_url = Mock(return_value='success-url')

        self.assertEqual(redirect.return_value, mixin.delete())
        mixin.object.delete.assert_called_once_with()
        redirect.assert_called_once_with('success-url')
Removes a database from the OrientDB server instance. This operation returns a successful response if the database is deleted successfully. Otherwise, if the database doesn't exist on the server, it returns an Exception
dataset/ETHPy150Open brocaar/flask-views/flask_views/tests/unit/db/mongoengine/test_edit.py/DeletionMixinTestCase.test_delete--crossover with--dataset/ETHPy150Open mogui/pyorient/pyorient/orient.py/OrientDB.db_drop