def test_offset(self):
        self.session.query(SimpleModel).delete()
        for i in range(20):
            m = SimpleModel(i % u'name %d')
            m.id = i + 1
            self.session.add(m)
            self.session.flush()
        response = self.json_get(url_for('SimpleModelView:index',
                                         sortby='id',
                                         offset=10))
        assert response.status_code == 200
        assert json.loads(response.data.decode('utf-8'))['items'][0]['id'] == 11
dataset/ETHPy150Open danielholmstrom/flask-alchemyview/tests/test_view.py/TestSimpleModel.test_offset/swapped operands of `%`