summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/analysis/scan/pyapi.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/analysis/scan/pyapi.py b/tests/analysis/scan/pyapi.py
index 2aaaeec..006c17a 100644
--- a/tests/analysis/scan/pyapi.py
+++ b/tests/analysis/scan/pyapi.py
@@ -104,6 +104,15 @@ class TestRostPythonAPI(ChrysalideTestCase):
self.assertEqual(transformed[2], b'BQkM')
+ mod = find_token_modifiers_for_name('ror13')
+ self.assertIsNotNone(mod)
+
+ source = b'GetProcAddress'
+ transformed = mod.transform(source)
+
+ self.assertEqual(transformed[0], b'\xaa\xfc\x0d\x7c')
+
+
def testBytePatternModifiersAPI(self):
"""Validate the API for pattern modifiers."""