Revert changes to test_file_example_encryption_error()
parent
e11b3adb3f
commit
653eef4b95
|
@ -761,13 +761,13 @@ def test_file_example_with_WindowsPEBinaryExt():
|
||||||
|
|
||||||
|
|
||||||
def test_file_example_encryption_error():
|
def test_file_example_encryption_error():
|
||||||
file_ = stix2.File(name="qwerty.dll", is_encrypted=False,
|
with pytest.raises(stix2.exceptions.DependentPropertiesError) as excinfo:
|
||||||
encryption_algorithm="AES128-CBC")
|
stix2.File(name="qwerty.dll",
|
||||||
|
is_encrypted=False,
|
||||||
|
encryption_algorithm="AES128-CBC")
|
||||||
|
|
||||||
assert file_.__class__ == stix2.File
|
assert excinfo.value.cls == stix2.File
|
||||||
assert file_.name == "qwerty.dll"
|
assert excinfo.value.dependencies == [("is_encrypted", "encryption_algorithm")]
|
||||||
assert file_.is_encrypted is False
|
|
||||||
assert file_.encryption_algorithm == "AES128-CBC"
|
|
||||||
|
|
||||||
|
|
||||||
def test_ip4_address_example():
|
def test_ip4_address_example():
|
||||||
|
|
Loading…
Reference in New Issue