test_package.py: use list of public names instead of dedicated methods
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 3 Oct 2019 21:10:06 +0000 (17:10 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 4 Oct 2019 16:52:40 +0000 (12:52 -0400)
commitcdbde3b580b85b33963c3310b9e1132b80b41a24
treebfab437f85cd2ed47d108b2e1b39883498a9f91c
parent2a68ec5a7be96feecc124d728c8b99c9e2140e11
test_package.py: use list of public names instead of dedicated methods

This patch changes `test_package.py` so that the public names to verify
are listed in the `_public_names` list. The code creates the
corresponding test methods.

This makes it less cumbersome to add public name tests in the future.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I0d370d4b5fd4564000e1e0f273d3b1b36a8acc43
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2125
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
tests/bindings/python/bt2/test_package.py
This page took 0.024892 seconds and 4 git commands to generate.