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

FWIW I don't think that's quite accurate - a third-party project could support a Python-3-only version of Django, but itself also still support earlier Django versions, and Python 2.

(That said, I think the convenience import is still the right thing to do.)