File: test_client_legacy.py

package info (click to toggle)
python-ledger-bitcoin 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 716 kB
  • sloc: python: 9,357; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 431 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from pathlib import Path

from bitcoin_client.ledger_bitcoin import Client
from bitcoin_client.ledger_bitcoin.client_legacy import LegacyClient


tests_root: Path = Path(__file__).parent


def test_client_legacy(client: Client):
    # tests that the library correctly instatiates the LegacyClient and not the new one,
    # since the version of the app binary being tested is an old one
    assert isinstance(client, LegacyClient)