-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/fileinfo: Added test for avast/retdec#288
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
)) |