# Path: malwareconfig/fileparser.py
# class FileParser:
#     def __init__(self, file_path=None, rawdata=None):
#     def yarascan(self):
#     def file_hash(self, hash_type="sha256"):
#     def pe_resource_id(self, res_id):
#         def modules_callback(data):
#     def pe_resource_names(self):
#     def pe_resource_by_name(self, resource_name):
#     def dotnet_resource_names(self):
#         def modules_callback(data):
#     def dotnet_resource_by_name(self, resource_name):
#         def modules_callback(data):
#     def dotnet_guids(self):
#         def modules_callback(data):
#     def dotnet_user_strings(self):
#         def modules_callback(data):
#     def ascii_strings(self, min_len=4):
#     def unicode_strings(self, min_len=4):
#     def file_from_zip(self, filename):
#     def zip_namelist(self):
#     def parse_apk(self):
#     def elf_list_sections(self):
#         def modules_callback(data):
#     def elf_section_by_name(self, resource_name):
#         def modules_callback(data):
# 
# Path: malwareconfig/modules.py
# def load_decoders():
# def load_preprocessors():


from malwareconfig import fileparser
from malwareconfig.modules import  __preprocessors__

def test_preproc_import():
    assert 'UPX' in __preprocessors__.keys()

def test_upx():
    sample_path = 'tests/samples/upx'

# Path: malwareconfig/fileparser.py
# class FileParser:
#     def __init__(self, file_path=None, rawdata=None):
#     def yarascan(self):
#     def file_hash(self, hash_type="sha256"):
#     def pe_resource_id(self, res_id):
#         def modules_callback(data):
#     def pe_resource_names(self):
#     def pe_resource_by_name(self, resource_name):
#     def dotnet_resource_names(self):
#         def modules_callback(data):
#     def dotnet_resource_by_name(self, resource_name):
#         def modules_callback(data):
#     def dotnet_guids(self):
#         def modules_callback(data):
#     def dotnet_user_strings(self):
#         def modules_callback(data):
#     def ascii_strings(self, min_len=4):
#     def unicode_strings(self, min_len=4):
#     def file_from_zip(self, filename):
#     def zip_namelist(self):
#     def parse_apk(self):
#     def elf_list_sections(self):
#         def modules_callback(data):
#     def elf_section_by_name(self, resource_name):
#         def modules_callback(data):
# 
# Path: malwareconfig/modules.py
# def load_decoders():
# def load_preprocessors():


# Path: tests/test_preprocess.py
from malwareconfig import fileparser
from malwareconfig.modules import  __preprocessors__


def test_preproc_import():
    assert 'UPX' in __preprocessors__.keys()

def test_upx():
    sample_path = 'tests/samples/upx'

    file_info = fileparser.FileParser(file_path=sample_path)