'Test Model base filtered views'

def test_model_base_filter(self):

    client = self.app.test_client()
    self.login(client, DEFAULT_ADMIN_USER, DEFAULT_ADMIN_PASSWORD)
    self.insert_data()
    models = self.db.session.query(Model1).all()
    eq_(len(models), 23)
    rv = client.get('/model1filtered1view/list/')
    data = rv.data.decode('utf-8')
    ok_(('atest' in data))
    ok_(('btest' not in data))
    rv = client.get('/model1filtered2view/list/')
    data = rv.data.decode('utf-8')
    ok_(('atest' in data))
    ok_(('btest' not in data))
