From 274abc52e91ab2d0e229ccfb67b8cc5c833b8316 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Mon, 24 Feb 2020 20:02:26 -0500 Subject: [PATCH] An exception message changed as a result of a pattern-validator update. This broke a unit test which was testing the message. I updated the test. --- stix2/test/v21/test_indicator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/test/v21/test_indicator.py b/stix2/test/v21/test_indicator.py index 152f253..d7d7e47 100644 --- a/stix2/test/v21/test_indicator.py +++ b/stix2/test/v21/test_indicator.py @@ -271,7 +271,7 @@ def test_indicator_stix20_invalid_pattern(): ) assert excinfo.value.cls == stix2.v21.Indicator - assert "FAIL: The same qualifier is used more than once" in str(excinfo.value) + assert "FAIL: Duplicate qualifier type encountered: WITHIN" in str(excinfo.value) ind = stix2.v21.Indicator( type="indicator",