Skip to content

Commit a4d8e8d

Browse files
committed
tests pass
1 parent 24d9e13 commit a4d8e8d

File tree

2 files changed

+2
-45
lines changed

2 files changed

+2
-45
lines changed

src/cachesweeper/fixtures/test_myapp_data.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/cachesweeper/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def test_version_after_save(self):
3030
# get the version key for this comment
3131
version_cache_key = cache_token_key_for_record(comment)
3232
# get the original version, should be zero
33-
original_version = cache.get(version_cache_key)
34-
self.assertTrue(original_version)
33+
original_version = cache.get(version_cache_key, None)
34+
self.assertNotEquals(original_version, None)
3535
# change the comment & save, should increment the version value in
3636
# memcached
3737
comment.like_it()

0 commit comments

Comments
 (0)