Example #1
0
def test_cache_key():
    # Test that we are not taking the db into account when building our
    # cache keys for django-cache-machine. See bug 928881.
    assert Addon._cache_key(1, 'default') == Addon._cache_key(1, 'slave')
Example #2
0
def test_cache_key():
    # Test that we are not taking the db into account when building our
    # cache keys for django-cache-machine. See bug 928881.
    assert Addon._cache_key(1, 'default') == Addon._cache_key(1, 'slave')