from nowallet import scrape

def test_scrape_electrum_servers(event_loop):
    servers = event_loop.run_until_complete(
        scrape.scrape_electrum_servers(chain_1209k="btc"))
    for server in servers:
        assert isinstance(server, tuple)
        assert len(server) == 3
        host, port, proto = server
        assert isinstance(host, str)
        assert isinstance(port, int)
        assert isinstance(proto, str)

from nowallet import scrape

def test_scrape_electrum_servers(event_loop):
    servers = event_loop.run_until_complete(
        scrape.scrape_electrum_servers(chain_1209k="btc"))
    for server in servers:
        assert isinstance(server, tuple)
        assert len(server) == 3
        host, port, proto = server
        assert isinstance(host, str)
        assert isinstance(port, int)
        assert isinstance(proto, str)
