'Memory caches that have the TIMEOUT parameter set to `None` in the
default settings with have `None` as the default timeout.
This means "no timeout".'

@override_settings(CACHES=NEVER_EXPIRING_CACHES_SETTINGS)
def test_caches_set_with_timeout_as_none_has_correct_default_timeout(self):

    cache = caches[DEFAULT_CACHE_ALIAS]
    self.assertIsNone(cache.default_timeout)
    self.assertIsNone(cache.get_backend_timeout())
