Add a unit test utility function for creating users.
Review Request #10649 — Created July 26, 2019 and submitted
This introduces a
create_user()function for test suites that
simplifies creating users with some default data, and makes it easier to
add permissions for a user (which normally requires some annoying
Over time, this will reduce the need for the
generally speeding up tests.
Used this successfully in an upcoming change.