def _setup(self, model, fit, data, predict=None, **kwargs):
self.data = data<EOL>fit(self.data.data, self.data.target)<EOL>self.predict = predict or self.model.predict<EOL>self.server_kwargs = kwargs<EOL>self.server = ModelServer(self.model, self.predict, **kwargs)<EOL>self.app = self.server.app.test_client()<EOL>
Set up method to be called before each unit test.

        Arguments:
            - fit (callable): model training method; must accept args (data, target)