summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-31 18:43:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-31 18:46:55 (GMT)
commit5efaafe278314051661c99c1e33a00d0883025a6 (patch)
treef4ee10bdb5605a82b80955fcfbf56a623ffc414d /tests
parent8f557031ec362c4b2e85724f6bc392086cefadea (diff)
Fixed mistakes relative to PyUnicode_Check() return value.
Diffstat (limited to 'tests')
-rw-r--r--tests/analysis/routine.py21
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)