Lines Matching refs:read

94     assert leshan.read(endpoint, '3/0/0') == 'Zephyr'
95 assert leshan.read(endpoint, '3/0/1') == 'client-1'
96 assert leshan.read(endpoint, '3/0/2') == 'serial-1'
122 resp = leshan.read(endpoint,'3/0')
130 resp = leshan.read(endpoint, '3/0')
141 assert leshan.read(endpoint, '1/0/2') == 101
142 assert leshan.read(endpoint, '1/0/3') == 1010
143 assert leshan.read(endpoint, '1/0/5') == 2000
147 assert leshan.read(endpoint, '1/0/2') == 1
148 assert leshan.read(endpoint, '1/0/3') == 10
149 assert leshan.read(endpoint, '1/0/5') == 86400
158 assert leshan.read(endpoint, '1/0/0') == short_id
159 assert leshan.read(endpoint, '1/0/6') is False
160 assert leshan.read(endpoint, '1/0/7') == 'U'
170 assert leshan.read(endpoint, '1/0/2') == 101
171 assert leshan.read(endpoint, '1/0/3') == 1010
172 assert leshan.read(endpoint, '1/0/6') is True
181 server_obj = leshan.read(endpoint, '1/0')
194 resp = leshan.read(endpoint, '1/0')
201 server_obj = leshan.read(endpoint, '1/0')
215 assert leshan.read(endpoint, '0/0')['status'] == 'UNAUTHORIZED(401)'
221 resp = leshan.read(endpoint, '1')
224 resp = leshan.read(endpoint, '3')
232 resp = leshan.read(endpoint, '1/0')
234 resp = leshan.read(endpoint, '3/0')
240 assert leshan.read(endpoint, '1/0/0') == 1
241 assert leshan.read(endpoint, '1/0/1') == 86400
242 assert leshan.read(endpoint, '1/0/6') is False
243 assert leshan.read(endpoint, '1/0/7') == 'U'
247 assert leshan.read(endpoint, '3/0/11/0') == 0
258 assert leshan.read(endpoint, '1/0/1') == 60
259 assert leshan.read(endpoint, '1/0/6') is True
274 assert leshan.read(endpoint, '1/0/1') == 63
285 assert leshan.read(endpoint, '16/0/0/0') == 'test'
322 resp = leshan.read(endpoint, '1/0')
325 resp = leshan.read(endpoint, '16/0/0')
339 verify_server_object(leshan.read(endpoint, '1')[1])
340 verify_device_object(leshan.read(endpoint, '3/0'))
341 assert leshan.read(endpoint, '3/0/16') == 'U'
342 assert leshan.read(endpoint, '3/0/11/0') == 0
362 srv_obj = leshan.read(endpoint, '1/0')
366 portfolio = leshan.read(endpoint, '16')
369 assert leshan.read(endpoint, '1/0/1') == 63
400 assert leshan.read(endpoint, '1')[1][0][1] is not None
401 assert leshan.read(endpoint, '3')[3][0][0] == 'Zephyr'
418 assert leshan.read(endpoint, '1/0/0') == short_id
431 assert leshan.read(endpoint, '1/0/2') == 102
432 assert leshan.read(endpoint, '1/0/6') is True
522 pwr_src = leshan.read(endpoint, '3/0/6')