test 套件使用pytest,从命名单元测试目录
diff --git a/req.txt b/req.txt
index 37c4759..9974eb3 100644
--- a/req.txt
+++ b/req.txt
@@ -1,4 +1,7 @@
 bunch==1.0.1
+dubbo-client==1.0.0-beta-1
 kazoo==2.0
+py==1.4.26
+pytest==2.7.0
 python-jsonrpc==0.7.3
 wsgiref==0.1.2
diff --git a/test_dubbo_client/__init__.py b/tests/__init__.py
similarity index 100%
rename from test_dubbo_client/__init__.py
rename to tests/__init__.py
diff --git a/test_dubbo_client/test_client.txt b/tests/test_client.txt
similarity index 100%
rename from test_dubbo_client/test_client.txt
rename to tests/test_client.txt
Binary files differ
diff --git a/test_dubbo_client/test_client_every_new.txt b/tests/test_client_every_new.txt
similarity index 100%
rename from test_dubbo_client/test_client_every_new.txt
rename to tests/test_client_every_new.txt
Binary files differ
diff --git a/tests/test_config.py b/tests/test_config.py
new file mode 100644
index 0000000..42e1539
--- /dev/null
+++ b/tests/test_config.py
@@ -0,0 +1,14 @@
+# coding=utf-8
+from dubbo_client import ApplicationConfig
+
+__author__ = 'caozupeng'
+
+
+def test_application_config_new():
+    application_config = ApplicationConfig('test_app', version='2.0.0', owner='caozupeng', error='ssd')
+    assert application_config.architecture == 'web'
+    assert application_config.name == 'test_app'
+    assert application_config.environment == 'run'
+    assert application_config.version == '2.0.0'
+    assert 'owner' in application_config.__dict__
+    assert 'ssd' not in application_config.__dict__
diff --git a/test_dubbo_client/test_dubbo.txt b/tests/test_dubbo.txt
similarity index 100%
rename from test_dubbo_client/test_dubbo.txt
rename to tests/test_dubbo.txt
Binary files differ
diff --git a/test_dubbo_client/test_performance.py b/tests/test_performance.py
similarity index 100%
rename from test_dubbo_client/test_performance.py
rename to tests/test_performance.py
diff --git a/test_dubbo_client/test_rawclient.py b/tests/test_rawclient.py
similarity index 100%
rename from test_dubbo_client/test_rawclient.py
rename to tests/test_rawclient.py
diff --git a/test_dubbo_client/test_registry.py b/tests/test_registry.py
similarity index 100%
rename from test_dubbo_client/test_registry.py
rename to tests/test_registry.py
diff --git a/test_dubbo_client/test_rpclib.py b/tests/test_rpclib.py
similarity index 100%
rename from test_dubbo_client/test_rpclib.py
rename to tests/test_rpclib.py