unittests previews - helpers.py