diff -Nru python-munch-2.2.0/debian/changelog python-munch-2.2.0/debian/changelog --- python-munch-2.2.0/debian/changelog 2018-02-14 19:03:18.000000000 +0000 +++ python-munch-2.2.0/debian/changelog 2018-02-14 20:14:07.000000000 +0000 @@ -1,3 +1,9 @@ +python-munch (2.2.0-1ubuntu2) bionic; urgency=medium + + * d/tests: Add basic autopkgtests to test module imports. + + -- Corey Bryant Wed, 14 Feb 2018 15:14:07 -0500 + python-munch (2.2.0-1ubuntu1) bionic; urgency=medium * d/gbp.conf: Update gbp configuration file. diff -Nru python-munch-2.2.0/debian/tests/control python-munch-2.2.0/debian/tests/control --- python-munch-2.2.0/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ python-munch-2.2.0/debian/tests/control 2018-02-14 20:14:07.000000000 +0000 @@ -0,0 +1,3 @@ +Tests: python-munch python3-munch +Depends: python-munch, python3-munch +Restrictions: needs-root diff -Nru python-munch-2.2.0/debian/tests/python3-munch python-munch-2.2.0/debian/tests/python3-munch --- python-munch-2.2.0/debian/tests/python3-munch 1970-01-01 00:00:00.000000000 +0000 +++ python-munch-2.2.0/debian/tests/python3-munch 2018-02-14 20:09:54.000000000 +0000 @@ -0,0 +1,14 @@ +#!/bin/bash +#------------------------- +# Testing python3-munch +#------------------------- +set -e + +result=$(python3 `dirname $0`/test_import_munch.py 2>&1) +if [ "$result" ]; then + echo "ERROR: PYTHON3-MUNCH MODULE CANNOT BE IMPORTED" + exit 1 +else + echo "OK" + exit 0 +fi diff -Nru python-munch-2.2.0/debian/tests/python-munch python-munch-2.2.0/debian/tests/python-munch --- python-munch-2.2.0/debian/tests/python-munch 1970-01-01 00:00:00.000000000 +0000 +++ python-munch-2.2.0/debian/tests/python-munch 2018-02-14 20:09:33.000000000 +0000 @@ -0,0 +1,14 @@ +#!/bin/bash +#------------------------- +# Testing python-munch +#------------------------- +set -e + +result=$(python2 `dirname $0`/test_import_munch.py 2>&1) +if [ "$result" ]; then + echo "ERROR: PYTHON-MUNCH MODULE CANNOT BE IMPORTED" + exit 1 +else + echo "OK" + exit 0 +fi diff -Nru python-munch-2.2.0/debian/tests/test_import_munch.py python-munch-2.2.0/debian/tests/test_import_munch.py --- python-munch-2.2.0/debian/tests/test_import_munch.py 1970-01-01 00:00:00.000000000 +0000 +++ python-munch-2.2.0/debian/tests/test_import_munch.py 2018-02-14 20:13:42.000000000 +0000 @@ -0,0 +1,4 @@ +try: + import munch +except ImportError as e: + print("ERROR IMPORTING MODULE")