@patch('flask_views.db.mongoengine.edit.super', create=True)
    def test_post(self, super_mock):
        super_class = Mock()
        super_class.post.return_value = 'post-response'
        super_mock.return_value = super_class

        view = BaseUpdateView()
        view.get_object = Mock(return_value='object')

        self.assertEqual('post-response', view.post('something', foo='bar'))
        self.assertEqual('object', view.object)
        super_class.post.assert_called_once_with('something', foo='bar')
Test :py:meth:`.BaseUpdateView.post`.
dataset/ETHPy150Open brocaar/flask-views/flask_views/tests/unit/db/mongoengine/test_edit.py/BaseUpdateViewTestCase.test_post