Skip to content

Commit

Permalink
tools/fileinfo: Added test for avast/retdec#288
Browse files Browse the repository at this point in the history
  • Loading branch information
metthal committed May 11, 2018
1 parent 75b8d04 commit b6b501c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file not shown.
17 changes: 17 additions & 0 deletions tools/fileinfo/features/rich-header-raw-bytes/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from regression_tests import *


class Test(Test):
settings=TestSettings(
tool='fileinfo',
args='--json --verbose',
input='JustRichHeader.ex'
)

def test_rich_header_raw_bytes_are_presented(self):
self.assertEqual(self.fileinfo.output['richHeader']['rawBytes'], (
'DanS\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x09x\\x93\\x00\\x0a\\x00\\x00\\x00\\x13f'
'\\x01\\x01\\x03\\x00\\x00\\x00\\x13f\\x03\\x01\\x01\\x00\\x00\\x00\\x13f\\x05\\x01\\x12\\x00\\x00\\x00\\x13f'
'\\x04\\x01\\x0c\\x00\\x00\\x00od\\x01\\x01\\x02\\x00\\x00\\x00\\x00\\x00\\x01\\x00+\\x00\\x00\\x00<g\\x09\\x01'
'\\x02\\x00\\x00\\x00<g\\xff\\x00\\x01\\x00\\x00\\x00<g\\x02\\x01\\x01\\x00\\x00\\x00'
))

0 comments on commit b6b501c

Please sign in to comment.