diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-06-29 20:49:26 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-07-10 12:58:24 -0400 |
| commit | 04bc6f11ae0289aae57d63d4cd32f4ef305d1a7a (patch) | |
| tree | 46f06280b13fb80f2aebf0eea9b52f884e698d0c /suite/api_test.py | |
| parent | 7598688466960427890036590239565364310171 (diff) | |
Move binary view loading in to the core; deprecate open_view in favor of load; update examples
Diffstat (limited to 'suite/api_test.py')
| -rw-r--r-- | suite/api_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/suite/api_test.py b/suite/api_test.py index 0d32584b..ec63cfb0 100644 --- a/suite/api_test.py +++ b/suite/api_test.py @@ -60,7 +60,7 @@ class FileApparatus: class Apparatus: def __init__(self, filename): with FileApparatus(filename) as path: - bv = BinaryViewType.get_view_of_file(os.path.relpath(path)) + bv = bn.load(os.path.relpath(path)) assert bv is not None self.bv = bv @@ -3092,7 +3092,7 @@ class TestBinaryViewType(unittest.TestCase): assert bvt2.get_arch(3, Endianness.LittleEndian) == Architecture["x86"] assert bvt2.get_platform(0, Architecture["x86"]) == Platform["linux-x86"] with FileApparatus("helloworld") as filename: - with BinaryViewType.get_view_of_file(filename) as bv: + with bn.load(filename) as bv: assert bvt2.is_valid_for_data(bv.parent_view) assert isinstance(bvt2.parse(bv.parent_view), BinaryView) @@ -3523,7 +3523,7 @@ class LowLevelILTests(TestWithBinaryView): # class TestObjectiveCPlugin(unittest.TestCase): # def setUp(self): # with FileApparatus("calculator_macOS12_arm64e") as path: -# bv = BinaryViewType.get_view_of_file_with_options( +# bv = load( # os.path.relpath(path), # options={"workflows.enable": True, "workflows.functionWorkflow": "core.function.objectiveC"} # ) |
