From cf740a279e811dab52b27e3e746d2e8aeb39af9b Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 31 Oct 2020 09:56:43 +0100 Subject: [PATCH] combine constant with varying data --- python/tests/test_ConfigMaterial.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/tests/test_ConfigMaterial.py b/python/tests/test_ConfigMaterial.py index d0bcd2a56..0f2b6a90c 100644 --- a/python/tests/test_ConfigMaterial.py +++ b/python/tests/test_ConfigMaterial.py @@ -87,3 +87,7 @@ class TestConfigMaterial: c = m['constituents'][0] assert m['c'] == 1 and c['b'] == 0 and c['a'] == [i,1] + def test__constituents(self): + c = ConfigMaterial._constituents(c=1,v=[2,3]) + assert c[0][0]['c'] == c[1][0]['c'] == 1 + assert c[0][0]['v'] == c[1][0]['v'] -1 ==2