Commit a69b472d authored by zhifan huang's avatar zhifan huang

test: add registry.getNetworkConfig

parent afa77741
......@@ -329,6 +329,14 @@ class TestRegistryServer(unittest.TestCase):
delete_cert(cur, prefix_new)
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("select.select", Mock(return_value=[1]))
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