From e1e7bade3fe42330aee0b9d7c998b7d98ef8a2f3 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Thu, 1 Jun 2017 15:25:46 -0400 Subject: [PATCH] Updated this test since setting the value to False should not be a reason to fail the test. --- stix2/test/test_observed_data.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/stix2/test/test_observed_data.py b/stix2/test/test_observed_data.py index c47338f..09f49c7 100644 --- a/stix2/test/test_observed_data.py +++ b/stix2/test/test_observed_data.py @@ -761,14 +761,13 @@ def test_file_example_with_WindowsPEBinaryExt(): def test_file_example_encryption_error(): - with pytest.raises(stix2.exceptions.DependentPropertiesError) as excinfo: - stix2.File(name="qwerty.dll", - is_encrypted=False, - encryption_algorithm="AES128-CBC" - ) + file_ = stix2.File(name="qwerty.dll", is_encrypted=False, + encryption_algorithm="AES128-CBC") - assert excinfo.value.cls == stix2.File - assert excinfo.value.dependencies == [("is_encrypted", "encryption_algorithm")] + assert file_.__class__ == stix2.File + assert file_.name == "qwerty.dll" + assert file_.is_encrypted is False + assert file_.encryption_algorithm == "AES128-CBC" def test_ip4_address_example():