From 21359da766056f5105fe7fc89703c5c830e41e9f Mon Sep 17 00:00:00 2001 From: Michael Hunhoff Date: Tue, 23 Mar 2021 16:02:47 -0600 Subject: [PATCH] updating test for strings with special characaters --- tests/test_rules.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_rules.py b/tests/test_rules.py index 4b4608fc..ffbf81aa 100644 --- a/tests/test_rules.py +++ b/tests/test_rules.py @@ -689,14 +689,12 @@ def test_string_values_special_characters(): name: test rule features: - or: - - string: hello\\r\\nworld - - string: some\\path + - string: "hello\\r\\nworld" """ ) r = capa.rules.Rule.from_yaml(rule) children = list(r.statement.get_children()) assert (String("hello\r\nworld") in children) == True - assert (String("some\\path") in children) == True def test_regex_values_always_string():