'Tests that when a cache TTL is not set, an unlocked asset will be sent back without
any cache control/expires headers.'

@patch('openedx.core.djangoapps.contentserver.models.CourseAssetCacheTtlConfig.get_cache_ttl')
def test_cache_headers_without_ttl_unlocked(self, mock_get_cache_ttl):

    mock_get_cache_ttl.return_value = 0
    resp = self.client.get(self.url_unlocked)
    self.assertEqual(resp.status_code, 200)
    self.assertNotIn('Expires', resp)
    self.assertNotIn('Cache-Control', resp)
