diff --git a/bindings/python/native/tests/test_full_node_api.py b/bindings/python/native/tests/test_full_node_api.py index 76b2b2023..33fb72569 100644 --- a/bindings/python/native/tests/test_full_node_api.py +++ b/bindings/python/native/tests/test_full_node_api.py @@ -20,7 +20,8 @@ def test_get_health(): def test_get_info(): node_info = client.get_info() - assert isinstance(node_info, dict) and 'is_healthy' in node_info['nodeinfo'] + assert isinstance( + node_info, dict) and 'is_healthy' in node_info['nodeinfo'] def test_get_peers(): @@ -30,7 +31,7 @@ def test_get_peers(): assert isinstance(peers, list) except ValueError as e: # Else the error must be access forbidden - assert "access forbidden, error: forbidden" in str(e) + assert "Forbidden" in str(e) def test_get_tips(): @@ -95,7 +96,7 @@ def test_get_receipts(): assert isinstance(receipt, list) except ValueError as e: # Else the error must be access forbidden - assert "access forbidden, error: forbidden" in str(e) + assert "Forbidden" in str(e) def test_get_receipts_migrated_at(): @@ -105,7 +106,7 @@ def test_get_receipts_migrated_at(): assert isinstance(receipts, list) except ValueError as e: # Else the error must be access forbidden - assert "access forbidden, error: forbidden" in str(e) + assert "Forbidden" in str(e) def test_get_treasury():