This also should have been included in commit 91fad79906 "Add Python static checks and unit tests to autopkgtest tests".
91fad79906