[testlib] refactor create_user and grant_permission to make them usable from pre_setup_database
# copyright %(year)s %(author)s, all rights reserved.# contact %(author-web-site)s -- mailto:%(author-email)s#%(long-license)s"""%(distname)s specific hooks and operations"""