https://github.com/edx/edx-platform/blob/master/common/djangoapps/student/tests/test_email.py#L174