diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-01-31 18:43:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-01-31 18:46:55 (GMT) |
commit | 5efaafe278314051661c99c1e33a00d0883025a6 (patch) | |
tree | f4ee10bdb5605a82b80955fcfbf56a623ffc414d /tests | |
parent | 8f557031ec362c4b2e85724f6bc392086cefadea (diff) |
Fixed mistakes relative to PyUnicode_Check() return value.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/analysis/routine.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/analysis/routine.py b/tests/analysis/routine.py new file mode 100644 index 0000000..da54ee9 --- /dev/null +++ b/tests/analysis/routine.py @@ -0,0 +1,21 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + + +from chrysacase import ChrysalideTestCase +from pychrysalide.analysis import BinRoutine + + +class TestBinaryRoutines(ChrysalideTestCase): + """TestCase for binary routine.""" + + def testUnicodeName(self): + """Ensure Unicode checks are well performed.""" + + name = 'ABC' + + r = BinRoutine() + + r.name = name + + self.assertEqual(r.name, name) |