Fixed #21341 -- clean way of making https requests with testing client

All the request methods of ``django.test.client.Client`` receive a ``secure``
argument that defaults to ``False`` indicating wether or not to make the
request through https.