def test_get_from_failover(self):
     d = "test_fo"
     g = "group"
     key = "+".join([d, g, NAMESPACE])
     files.save_file(client.failover_base, key, u"xxx中文")
     print(client.get_config(d, g))
     self.assertEqual(client.get_config(d, g), u"xxx中文")
     shutil.rmtree(client.failover_base)
 def test_get_from_snapshot(self):
     client2 = nacos.NacosClient(SERVER_ADDRESSES, namespace=NAMESPACE, username=USERNAME, password=PASSWORD)
     client2.current_server = ("1.100.84.215", 8080)
     d = "test_snap"
     g = "group"
     key = "+".join([d, g, NAMESPACE])
     files.save_file(client2.snapshot_base, key, u"yyy中文")
     self.assertEqual(client2.get_config(d, g), u"yyy中文")
     shutil.rmtree(client2.snapshot_base)