privilege_test.py 298 B

123456789101112
  1. import os
  2. os.chdir(os.path.dirname(__file__))
  3. import sys
  4. sys.path.append("..")
  5. sys.path.append("..\\Sources")
  6. import Sources.utility.privilege_manager as priv
  7. import Sources.main as main
  8. def test_privilege_manager() :
  9. main.init()
  10. if not priv.test() :
  11. raise Exception()