testGetConfig.py 805 B

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. """
  3. -------------------------------------------------
  4. File Name: testGetConfig
  5. Description : test all function in GetConfig.py
  6. Author : J_hao
  7. date: 2017/7/31
  8. -------------------------------------------------
  9. Change Activity:
  10. 2017/7/31:
  11. -------------------------------------------------
  12. """
  13. __author__ = 'J_hao'
  14. from Util.GetConfig import GetConfig
  15. # noinspection PyPep8Naming
  16. def testGetConfig():
  17. """
  18. test class GetConfig in Util/GetConfig
  19. :return:
  20. """
  21. gg = GetConfig()
  22. print(gg.db_type)
  23. print(gg.db_name)
  24. print(gg.db_host)
  25. print(gg.db_port)
  26. assert isinstance(gg.proxy_getter_functions, list)
  27. print(gg.proxy_getter_functions)
  28. if __name__ == '__main__':
  29. testGetConfig()