master
/ miniconda3 / pkgs / boltons-23.0.0-py311h06a4308_0 / info / test / tests / test_ecoutils.py

test_ecoutils.py @74036c5 raw · history · blame

import sys
from boltons import ecoutils


def test_basic():
    # basic sanity test
    prof = ecoutils.get_profile()

    assert prof['python']['bin'] == sys.executable


def test_scrub():
    prof = ecoutils.get_profile(scrub=True)

    assert prof['username'] == '-'