This patch updates test_packet.py and packet.py to work with the current
API.
In both files, everything about equality, copy, deep copy and header
fields is removed. The setter for context_field is also removed.
One side-effect change (required for the test) is in the
Field.field_class property. Previously, when creating a Field object
wrapping a bt_field pointer, we would create the corresponding
FieldClass object and store it in Field._field_class. Instead, we can
compute it as needed in the Field.field_class property, I don't really
see any problem with that.
Change-Id: I509b3bd272fb323ed6df7de47d21c31b8aedc72f Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1301 Tested-by: jenkins Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>