This commit is contained in:
William Ballenthin
2021-11-10 12:51:27 -07:00
parent 845df282ef
commit 2d68fb2536
3 changed files with 12 additions and 14 deletions

View File

@@ -298,7 +298,6 @@ def test_match_namespace():
assert "filesystem-any" in matches
def test_match_substring():
rules = [
capa.rules.Rule.from_yaml(

View File

@@ -2,9 +2,10 @@ import textwrap
import capa.rules
import capa.render.utils
import capa.render.result_document
import capa.features.insn
import capa.features.common
import capa.render.result_document
def test_render_number():
assert str(capa.features.insn.Number(1)) == "number(0x1)"

View File

@@ -785,8 +785,6 @@ def test_substring_description():
assert (Substring("abc") in children) == True
def test_filter_rules():
rules = capa.rules.RuleSet(
[