This commit is contained in:
William Ballenthin
2021-08-11 09:23:41 -06:00
parent 97092c91db
commit 753b003107
4 changed files with 29 additions and 10 deletions

View File

@@ -15,7 +15,16 @@ import capa.engine
import capa.features.common
from capa.features.file import FunctionName
from capa.features.insn import Number, Offset
from capa.features.common import ARCH_X32, ARCH_X64, CHARACTERISTIC_PE, CHARACTERISTIC_WINDOWS, OS_WINDOWS, FORMAT_PE, String, Characteristic
from capa.features.common import (
ARCH_X32,
ARCH_X64,
FORMAT_PE,
OS_WINDOWS,
CHARACTERISTIC_PE,
CHARACTERISTIC_WINDOWS,
String,
Characteristic,
)
def test_rule_ctor():
@@ -979,4 +988,4 @@ def test_format_features():
r = capa.rules.Rule.from_yaml(rule)
children = list(r.statement.get_children())
assert (CHARACTERISTIC_PE in children) == True
assert (CHARACTERISTIC_ELF not in children) == True
assert (CHARACTERISTIC_ELF not in children) == True