      "A customized cache key function"
      return 'CUSTOM-' + '-'.join([key_prefix, str(version), key])
  
  
  class DBCacheTests(unittest.TestCase, BaseCacheTests):
      backend_name = 'django.core.cache.backends.db.DatabaseCache'
  
      def setUp(self):
          # Spaces are used in the table name to ensure quoting/escaping is working
          self._table_name = 'test cache table'
 
</s>
class DBCacheTests(BaseCacheTests, TestCase):
      "A customized cache key function"
      return 'CUSTOM-' + '-'.join([key_prefix, str(version), key])
  
  
class DBCacheTests(BaseCacheTests, TestCase):
      backend_name = 'django.core.cache.backends.db.DatabaseCache'
  
      def setUp(self):
          # Spaces are used in the table name to ensure quoting/escaping is working
          self._table_name = 'test cache table'
keep keep keep keep replace keep keep keep keep keep
 Made the database cache backend, which bypasses the ORM, compatible with time zone support.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@17119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
tests/regressiontests/cache/tests.py