From f094216dce0917614fb07e453f23503e1c07a7d9 Mon Sep 17 00:00:00 2001 From: Tom Janson Date: Wed, 15 Mar 2017 21:08:32 +0100 Subject: [PATCH] crudely sanity-check instance matrix content --- tests/storage/test_model_instantiator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/storage/test_model_instantiator.py b/tests/storage/test_model_instantiator.py index 7e22fd2..3c86065 100644 --- a/tests/storage/test_model_instantiator.py +++ b/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])