Update test_message.py to match the current Babeltrace API. Update
message.py to also match the current API and make the test pass.
message_iterator.py is also updated, as it is required by the test, but
just the essential changes are done.
The test changes substantially, since it is no longer possible to create
a message by itself, they are created from a component message iterator,
which requires quite a bit of setup. Also, it would be invalid to emit
an "event message" without having first emitted a "stream beginning
message", "packet beginning message", and so on. So testing the message
types in isolation would required quite a lot of boilerplate. This is
why all messages types are now tested in the same test. We have a
source that emits all message types at least once. The sink on the
other side verifies that what it receives from the source is what we
expect.
Everything related to equality, copy and deep copy is removed.
Change-Id: Ibe6146049cc1065df82dde821a42f10d4e5bba27 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/+/1324 Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com> Tested-by: jenkins