boltons/tests/test_ecoutils.py

17 lines
271 B
Python
Raw Normal View History

import sys
from boltons import ecoutils
def test_basic():
# basic sanity test
prof = ecoutils.get_profile()
assert prof['python']['bin'] == sys.executable
2016-05-24 05:39:33 +00:00
def test_scrub():
prof = ecoutils.get_profile(scrub=True)
assert prof['username'] == '-'