'Validate that the api update endpoint updates [only] the fields in
POST data'

def test_api_update(self):

    client = self.app.test_client()
    self.login(client, DEFAULT_ADMIN_USER, DEFAULT_ADMIN_PASSWORD)
    self.insert_data()
    item = self.db.session.query(Model1).filter_by(id=1).one()
    field_integer_before = item.field_integer
    rv = client.put('/model1view/api/update/1', data=dict(field_string='zzz'), follow_redirects=True)
    eq_(rv.status_code, 200)
    item = self.db.session.query(Model1).filter_by(id=1).one()
    eq_(item.field_string, 'zzz')
    eq_(item.field_integer, field_integer_before)
