def test_invalid_offset_html(self):
        response = self.client.get(url_for('SimpleModelView:index',
                                           sortby='id',
                                           offset='invalid'))
        assert response.status_code == 400
        assert 'DOCTYPE HTML' in response.data.decode('utf-8')
        assert 'Bad Request' in response.data.decode('utf-8')
dataset/ETHPy150Open danielholmstrom/flask-alchemyview/tests/test_view.py/TestSimpleModel.test_invalid_offset_html/original