Add TestCase.assert_raises method.
Raises _generator.Error exception when model doen't contain a variable from a list of shared or local variables.