boltons/tests/test_ecoutils.py

16 lines
270 B
Python

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