aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/test
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-10-13 03:50:48 +0800
committerGitHub <noreply@github.com>2018-10-13 03:50:48 +0800
commit2afa38c927ab10f1d8eecbb7e81a7c70f4bda767 (patch)
tree3067bb0795601f732275cf085f365b0276677508 /python-packages/order_utils/test
parent11033c78f559de207f89e7588dc3ccf458cbbe30 (diff)
parent92fd0a9d24378d01d87dfa6fd0ec5a42edfe8308 (diff)
downloaddexon-0x-contracts-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar
dexon-0x-contracts-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.gz
dexon-0x-contracts-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.bz2
dexon-0x-contracts-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.lz
dexon-0x-contracts-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.xz
dexon-0x-contracts-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.tar.zst
dexon-0x-contracts-2afa38c927ab10f1d8eecbb7e81a7c70f4bda767.zip
feat(python/order_utils): project stub
An empty project, with respect to functionality, but one configured with a test framework, linters, CI integration, etc. https://app.asana.com/0/836857747873847/839549782781239/f
Diffstat (limited to 'python-packages/order_utils/test')
-rw-r--r--python-packages/order_utils/test/__init__.py1
-rw-r--r--python-packages/order_utils/test/test_doctest.py10
-rw-r--r--python-packages/order_utils/test/test_signature_utils.py8
3 files changed, 19 insertions, 0 deletions
diff --git a/python-packages/order_utils/test/__init__.py b/python-packages/order_utils/test/__init__.py
new file mode 100644
index 000000000..ec5b114aa
--- /dev/null
+++ b/python-packages/order_utils/test/__init__.py
@@ -0,0 +1 @@
+"""Tests of zero_x.order_utils."""
diff --git a/python-packages/order_utils/test/test_doctest.py b/python-packages/order_utils/test/test_doctest.py
new file mode 100644
index 000000000..a0e61f84a
--- /dev/null
+++ b/python-packages/order_utils/test/test_doctest.py
@@ -0,0 +1,10 @@
+"""Exercise doctests for order_utils module."""
+
+from doctest import testmod
+from zero_ex.order_utils import signature_utils
+
+
+def test_doctest():
+ """Invoke doctest on the module."""
+ (failure_count, _) = testmod(signature_utils)
+ assert failure_count == 0
diff --git a/python-packages/order_utils/test/test_signature_utils.py b/python-packages/order_utils/test/test_signature_utils.py
new file mode 100644
index 000000000..7e830f9f8
--- /dev/null
+++ b/python-packages/order_utils/test/test_signature_utils.py
@@ -0,0 +1,8 @@
+"""Tests of 0x.order_utils.signature_utils.*."""
+
+from zero_ex.order_utils.signature_utils import ec_sign_order_hash
+
+
+def test_ec_sign_order_hash():
+ """Test the signing of order hashes."""
+ assert ec_sign_order_hash() == "stub return value"