Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating our tests for memcachier.

  • Loading branch information...
commit 4c3a4c91443e1f229a34e3b639c6c04e2163e3eb 1 parent 278876a
Randall Degges authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 tests.py
View
9 tests.py
@@ -46,8 +46,13 @@ def test_sets_proper_backend_when_memcachier_addon_is_available(self):
caches = memcacheify()
self.assertEqual(caches['default']['BACKEND'], 'django_pylibmc.memcached.PyLibMCCache')
- self.assertEqual(caches['default']['PASSWORD'], 'xxx')
- self.assertEqual(caches['default']['USERNAME'], 'xxx')
+ self.assertEqual(environ['MEMCACHE_SERVERS'], environ['MEMCACHIER_SERVERS'])
+ self.assertEqual(environ['MEMCACHE_USERNAME'], environ['MEMCACHIER_USERNAME'])
+ self.assertEqual(environ['MEMCACHE_PASSWORD'], environ['MEMCACHIER_PASSWORD'])
+
del environ['MEMCACHIER_PASSWORD']
del environ['MEMCACHIER_SERVERS']
del environ['MEMCACHIER_USERNAME']
+ del environ['MEMCACHE_PASSWORD']
+ del environ['MEMCACHE_SERVERS']
+ del environ['MEMCACHE_USERNAME']
Please sign in to comment.
Something went wrong with that request. Please try again.