forked from jhao104/proxy_pool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestGetConfig.py
More file actions
33 lines (29 loc) · 805 Bytes
/
Copy pathtestGetConfig.py
File metadata and controls
33 lines (29 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: testGetConfig
Description : test all function in GetConfig.py
Author : J_hao
date: 2017/7/31
-------------------------------------------------
Change Activity:
2017/7/31:
-------------------------------------------------
"""
__author__ = 'J_hao'
from Util.GetConfig import GetConfig
# noinspection PyPep8Naming
def testGetConfig():
"""
test class GetConfig in Util/GetConfig
:return:
"""
gg = GetConfig()
print(gg.db_type)
print(gg.db_name)
print(gg.db_host)
print(gg.db_port)
assert isinstance(gg.proxy_getter_functions, list)
print(gg.proxy_getter_functions)
if __name__ == '__main__':
testGetConfig()