def test_fetch(self): response = anu.fetch_list(anu.TYPE_UINT16, anu.MAX_BLOCK_SIZE, length=10) success = response['success'] data = response['data'] length = len(data) assert success assert length == 10
def test_fetch_uint16(self): response = anu.fetch_list(anu.TYPE_UINT16, anu.MAX_BLOCK_SIZE, length=10) success = response['success'] data = response['data'] length = len(data) assert success assert length == 10 assert 0 <= data[0] <= numbers.MAX_UINT16