def METHOD_NAME(self):
    self.check(
        '/model/iris/',
        method='put',
        data=json.dumps(
            {'url': 'iris.csv', 'model_class': 'sklearn.linear_model.SGDClassifier'}
        ),
        request_headers={'Model-Retrain': 'True'},
    )
    # Train a model
    self.check(
        '/model/iris/',
        method='post',
        data=json.dumps({'model_class': 'sklearn.ensemble.RandomForestClassifier'}),
    )
    # Change a parameter
    r = self.check('/model/iris/').json()
    eq_(r['model_class'], 'sklearn.ensemble.RandomForestClassifier')
    eq_(r['trained'], False)