Fix the unit tests for API caching.

The recent fix for ETags in Djblets broke the unit tests, which weren't
providing the headers Django sets nowadays. This updates our common test
function for caching to use the correct header.