'Ensure that resources return the Vary: Accept header.'

def test_vary_accept(self):

    response = self.client.get('/api/v1/cached_users/', HTTP_ACCEPT='application/json')
    self.assertEqual(response.status_code, 200)
    vary = response['Vary']
    vary_types = [x.strip().lower() for x in vary.split(',') if x.strip()]
    self.assertIn('accept', vary_types)
