## testing.ModelContract


Tests every model form passes (design §6, §13).


Usage

``` python
testing.ModelContract()
```


Set `key` (and [registry](steps.registry.md#dazflow.steps.registry), when the form is not in [dazflow.models.registry](models.registry.md#dazflow.models.registry)) in a subclass whose name starts with [Test](checks.Test.md#dazflow.checks.Test). Optional: [config](pipeline.Pipeline.md#dazflow.pipeline.Pipeline.config), the form's parameters under test; `sample()`, the data ([sample_series](testing.sample_series.md#dazflow.testing.sample_series) by default); `refit_tolerance`, how close a refit from the stored record must come (absolute, per parameter).
