Browse Source

crudely sanity-check instance matrix content

refactoring
Tom Janson 8 years ago
parent
commit
f094216dce
  1. 2
      tests/storage/test_model_instantiator.py

2
tests/storage/test_model_instantiator.py

@ -16,6 +16,8 @@ class TestModel:
instantiated_model = instantiator.instantiate(point)
assert instantiated_model.nr_states == model.nr_states
assert not instantiated_model.has_parameters
assert "0.4" in str(instantiated_model.transition_matrix[1])
point = {p: 0.5 for p in parameters}
instantiated_model2 = instantiator.instantiate(point)
assert "0.5" in str(instantiated_model2.transition_matrix[1])
Loading…
Cancel
Save