From b1579ae26517422f2d1b35b31bc27341587eb9bc Mon Sep 17 00:00:00 2001 From: = Date: Thu, 22 Mar 2018 11:36:35 -0400 Subject: [PATCH] same as last commit --- stix2/test/test_datastore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stix2/test/test_datastore.py b/stix2/test/test_datastore.py index 70deb38..ff27cce 100644 --- a/stix2/test/test_datastore.py +++ b/stix2/test/test_datastore.py @@ -220,7 +220,8 @@ def test_filter_value_type_check(): with pytest.raises(TypeError) as excinfo: Filter("type", "=", complex(2, -1)) - assert "Filter value of '' is not supported" in str(excinfo.value) + assert any([s in str(excinfo.value) for s in ["", "''"]]) + assert "is not supported. The type must be a Python immutable type or dictionary" in str(excinfo.value) with pytest.raises(TypeError) as excinfo: Filter("type", "=", set([16, 23]))