Commit ca3b04ee authored by zhifan huang's avatar zhifan huang

add getNetworkConfig

parent d7cbb792
...@@ -329,6 +329,14 @@ class TestRegistryServer(unittest.TestCase): ...@@ -329,6 +329,14 @@ class TestRegistryServer(unittest.TestCase):
delete_cert(cur, prefix_new) delete_cert(cur, prefix_new)
cur.close() cur.close()
def test_getNetworkConfig(self):
"""just test this method run"""
cn = new_prefix()
insert_cert(self.server.db, self.server.cert, cn)
self.server.updateNetworkConfig()
self.server.getNetworkConfig(cn)
@patch("re6st.registry.RegistryServer.recv") @patch("re6st.registry.RegistryServer.recv")
@patch("select.select", Mock(return_value=[1])) @patch("select.select", Mock(return_value=[1]))
def test_queryAddress(self, recv): def test_queryAddress(self, recv):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment