Skip to content
Snippets Groups Projects
Commit a25cbbc8 authored by Michał Kudela's avatar Michał Kudela
Browse files

Add test for suggest_brain_key method

parent 4e320709
No related branches found
No related tags found
2 merge requests!262Duplicate typeScript tests to python,!230Implementation of the python wax interface
from __future__ import annotations
from typing import TYPE_CHECKING
import pytest
if TYPE_CHECKING:
from wax.interfaces import IWaxBaseInterface
@pytest.mark.describe("Should be able to suggest brain key")
def test_suggest_brain_key(wax: IWaxBaseInterface) -> None:
brain_key_data = wax.suggest_brain_key()
assert len(brain_key_data.associated_public_key) == 53
assert isinstance(brain_key_data.associated_public_key, str)
assert len(brain_key_data.brain_key.split(" ")) == 16
assert isinstance(brain_key_data.brain_key, str)
assert len(brain_key_data.wif_private_key) == 51
assert isinstance(brain_key_data.wif_private_key, str)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment