From 9983dce06b476d6e9c27dcf6ea1537bbb27c897a Mon Sep 17 00:00:00 2001 From: Felipe Selmo Date: Sat, 26 Feb 2022 09:20:37 -0700 Subject: [PATCH] Fix and add tests for `Method` class - Fix some tests that were falsely passing - Add tests for `is_property` flag for `Method` class --- tests/core/method-class/test_method.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/core/method-class/test_method.py b/tests/core/method-class/test_method.py index 44e132f4b6..5bf95f0f39 100644 --- a/tests/core/method-class/test_method.py +++ b/tests/core/method-class/test_method.py @@ -32,7 +32,7 @@ def test_method_accepts_callable_for_selector(): def test_method_selector_fn_accepts_str(): method = Method( - is_property=True, + set_as_property=True, json_rpc_method='eth_method', ) assert method.method_selector_fn() == 'eth_method' @@ -217,7 +217,7 @@ def test_default_input_munger_with_input_parameters(): ), ( { - 'is_property': True, + 'set_as_property': True, 'json_rpc_method': 'eth_chainId', }, [],