コード例 #1
0
    def check_win_pe(self, test_file, expected_file, regen=False):
        result = win_pe.pe_info(test_file, include_extra_data=True)
        if regen:
            with open(expected_file, 'wb') as out:
                json.dump(result, out, indent=2)

        with io.open(expected_file, encoding='utf-8') as expect:
            expected = json.load(expect, object_pairs_hook=OrderedDict)
        assert expected == dict(result)
コード例 #2
0
 def get_results(self, test_file):
     return win_pe.pe_info(test_file)