cubicweb #2175352 Have a auto-populate in misc/scripts/ [open]

Reuse the code in devtools/testlib.py so that it can be used outside of a TestCase (on a cube instance).

prioritynormal
typeenhancement
done in<not specified>
closed by<not specified>