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

test_ecoutils.py @a663dc1

41a0142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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'] == '-'