Add autopkgtest support

As with django-restricted-resource, allow stderr
and test the local source code only.