'Verify caching headers of search forms and search results'

def test_headers(self):

    response = self.client.get(reverse('search'), {'q': 'audio'})
    eq_(('max-age=%s' % (settings.SEARCH_CACHE_PERIOD * 60)), response['Cache-Control'])
    assert ('Expires' in response)
    response = self.client.get(reverse('search'))
    eq_(('max-age=%s' % (settings.SEARCH_CACHE_PERIOD * 60)), response['Cache-Control'])
    assert ('Expires' in response)
