We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24d9e13 commit a4d8e8dCopy full SHA for a4d8e8d
src/cachesweeper/fixtures/test_myapp_data.json
src/cachesweeper/tests.py
@@ -30,8 +30,8 @@ def test_version_after_save(self):
30
# get the version key for this comment
31
version_cache_key = cache_token_key_for_record(comment)
32
# get the original version, should be zero
33
- original_version = cache.get(version_cache_key)
34
- self.assertTrue(original_version)
+ original_version = cache.get(version_cache_key, None)
+ self.assertNotEquals(original_version, None)
35
# change the comment & save, should increment the version value in
36
# memcached
37
comment.like_it()
0 commit comments