(self)
| 209 | pretty_print(result) |
| 210 | |
| 211 | def test_array(self): |
| 212 | location1 = Object('me.hourui.echo.bean.Location') |
| 213 | location1['province'] = '江苏省' |
| 214 | location1['city'] = '南京市' |
| 215 | location1['street'] = '软件大道' |
| 216 | location2 = Object('me.hourui.echo.bean.Location') |
| 217 | location2['province'] = '浙江省' |
| 218 | location2['city'] = '杭州市' |
| 219 | location2['street'] = '余杭区' |
| 220 | |
| 221 | user1 = Object('me.hourui.echo.bean.User1') |
| 222 | user1['name'] = '张三' |
| 223 | user2 = Object('me.hourui.echo.bean.User1') |
| 224 | user2['name'] = '李四' |
| 225 | |
| 226 | array = Object('me.hourui.echo.bean.Object4Array') |
| 227 | array['locations'] = [location1, location2] |
| 228 | array['users'] = [user1, user2] |
| 229 | array['strings'] = ['这是', '一个', '不可', '重复', '重复', '重复', '重复', '的', '列表'] |
| 230 | |
| 231 | dubbo_cli = DubboClient('me.hourui.echo.provider.Echo', host='127.0.0.1:20880') |
| 232 | dubbo_cli.call('test4', [['你好', '我好'], [2, 3, 3, 3], array]) |
| 233 | |
| 234 | def test_pc(self): |
| 235 | zk = ZkRegister('172.21.4.71:2181') |
nothing calls this directly
no test coverage detected