aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/test/test_abi_utils.py
diff options
context:
space:
mode:
authorHsuan Lee <boczeratul@gmail.com>2019-03-06 17:46:50 +0800
committerHsuan Lee <boczeratul@gmail.com>2019-03-06 17:46:50 +0800
commit35703539d0f2b4ddb3b11d0de8c9634af59ab71f (patch)
treeae3731221dbbb3a6fa40060a8d916cfd3f738289 /python-packages/order_utils/test/test_abi_utils.py
parent92a1fde5b1ecd81b07cdb5bf0c9c1cd3544799db (diff)
downloaddexon-0x-contracts-35703539d0f2b4ddb3b11d0de8c9634af59ab71f.tar.gz
dexon-0x-contracts-35703539d0f2b4ddb3b11d0de8c9634af59ab71f.tar.zst
dexon-0x-contracts-35703539d0f2b4ddb3b11d0de8c9634af59ab71f.zip
Deploy @dexon-foundation/0x.jsstable
Diffstat (limited to 'python-packages/order_utils/test/test_abi_utils.py')
-rw-r--r--python-packages/order_utils/test/test_abi_utils.py53
1 files changed, 0 insertions, 53 deletions
diff --git a/python-packages/order_utils/test/test_abi_utils.py b/python-packages/order_utils/test/test_abi_utils.py
deleted file mode 100644
index 49a2a4f20..000000000
--- a/python-packages/order_utils/test/test_abi_utils.py
+++ /dev/null
@@ -1,53 +0,0 @@
-"""Tests of 0x.abi_utils."""
-
-import pytest
-
-from zero_ex.dev_utils.abi_utils import (
- elementary_name,
- event_id,
- method_id,
- parse_signature,
- simple_encode,
-)
-
-
-def test_parse_signature_type_error():
- """Test that passing in wrong types raises TypeError."""
- with pytest.raises(TypeError):
- parse_signature(123)
-
-
-def test_parse_signature_bad_input():
- """Test that passing a non-signature string raises a ValueError."""
- with pytest.raises(ValueError):
- parse_signature("a string that's not even close to a signature")
-
-
-def test_elementary_name_type_error():
- """Test that passing in wrong types raises TypeError."""
- with pytest.raises(TypeError):
- elementary_name(123)
-
-
-def test_event_id_type_error():
- """Test that passing in wrong types raises TypeError."""
- with pytest.raises(TypeError):
- event_id(123, [])
-
- with pytest.raises(TypeError):
- event_id("valid string", 123)
-
-
-def test_method_id_type_error():
- """Test that passing in wrong types raises TypeError."""
- with pytest.raises(TypeError):
- method_id(123, [])
-
- with pytest.raises(TypeError):
- method_id("ERC20Token", 123)
-
-
-def test_simple_encode_type_error():
- """Test that passing in wrong types raises TypeError."""
- with pytest.raises(TypeError):
- simple_encode(123)