def test_initializes(db_session):
    check_model = MalwareCheckFactory.create(name='SetupPatternCheck', state=MalwareCheckState.Enabled)
    check = c.SetupPatternCheck(db_session)
    assert (check.id == check_model.id)
    assert isinstance(check._yara_rules, yara.Rules)
def test_initializes(db_session):
    check_model = MalwareCheckFactory.create(name='SetupPatternCheck', state=MalwareCheckState.Enabled)
    check = c.SetupPatternCheck(db_session)
    assert (check.id == check_model.id)
    assert isinstance(check._yara_rules, yara.Rules)