def write(result): request.write(json.dumps({ "success": True, "data": IPBusWords.build(IPBusConstruct.parse(result).data[0]), "error": None, "traceback": None })) request.finish()
def write(result): request.write( json.dumps({ "success": True, "data": IPBusWords.build(IPBusConstruct.parse(result).data[0]), "error": None, "traceback": None })) request.finish()
def test_fail_parsing_little_endian(): with pytest.raises(ValidationError) as e: IPBusConstruct.parse(TESTPACKETS['little-endian'])
def test_parse_big_endian(): IPBusConstruct.parse(TESTPACKETS['big-endian'])
def test_parse_little_endian(): IPBusConstruct.parse(TESTPACKETS['little-endian'])