I know this code was just moved from another location (and I very much approve of sharing code instead of duplicating it). But in an ideal world that wasn't the day before the end of the iteration, I would request unit tests for this method in test_helpers.py.