merging upstream

This commit is contained in:
Michael Hunhoff
2021-03-25 12:43:59 -06:00

View File

@@ -690,11 +690,14 @@ def test_string_values_special_characters():
features:
- or:
- string: "hello\\r\\nworld"
- string: "bye\\nbye"
description: "test description"
"""
)
r = capa.rules.Rule.from_yaml(rule)
children = list(r.statement.get_children())
assert (String("hello\r\nworld") in children) == True
assert (String("bye\nbye") in children) == True
def test_regex_values_always_string():