'Testing the api/create endpoint'

def test_api_create(self):

    client = self.app.test_client()
    self.login(client, DEFAULT_ADMIN_USER, DEFAULT_ADMIN_PASSWORD)
    rv = client.post('/model1view/api/create', data=dict(field_string='zzz'), follow_redirects=True)
    eq_(rv.status_code, 200)
    objs = self.db.session.query(Model1).all()
    eq_(len(objs), 1)
