Fixed #23289 -- Added mock as a test dependency.

I added a convenience import in `django.test` with a comment that it's not meant as a public API. Even if people end up using it, it seems it will be easy to drop along with Python 2 support since if Django supports only Python 3, then no projects that use that version of Django will need to support Python 2 and thus can update to use `unittest.mock`.