test_win32profile.py 386 B

123456789101112131415
  1. """Test win32profile"""
  2. import os
  3. import unittest
  4. import win32profile
  5. class Tester(unittest.TestCase):
  6. def test_environment(self):
  7. os.environ["FOO"] = "bar=baz"
  8. env = win32profile.GetEnvironmentStrings()
  9. assert "FOO" in env
  10. assert env["FOO"] == "bar=baz"
  11. assert os.environ["FOO"] == "bar=baz"
  12. if __name__ == '__main__':
  13. unittest.main()