test_ecoutils.py 271 B

12345678910111213141516
  1. import sys
  2. from boltons import ecoutils
  3. def test_basic():
  4. # basic sanity test
  5. prof = ecoutils.get_profile()
  6. assert prof['python']['bin'] == sys.executable
  7. def test_scrub():
  8. prof = ecoutils.get_profile(scrub=True)
  9. assert prof['username'] == '-'