comparison MoinMoin/action/_tests/test_sendcached.py @ 3812:30ed528054ed

fix some pep8 failures
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 02 Jul 2008 01:05:09 +0200
parents 738bd5aec961
children 712e5938ec59
comparison
equal deleted inserted replaced
3811:e22cd9105e37 3812:30ed528054ed
79 cached = data_cache.content() 79 cached = data_cache.content()
80 assert data == cached 80 assert data == cached
81 81
82 def test_put_cache_complex(self): 82 def test_put_cache_complex(self):
83 """Test if put_cache() works for a more complex, practical scenario: 83 """Test if put_cache() works for a more complex, practical scenario:
84 84
85 As 'source' we just use some random integer as count value. 85 As 'source' we just use some random integer as count value.
86 86
87 The 'rendered representation' of it is just the word "spam" repeated 87 The 'rendered representation' of it is just the word "spam" repeated
88 count times, which we cache. 88 count times, which we cache.
89 89
90 The cache key calculation (for the 'non-guessable' keys) is also 90 The cache key calculation (for the 'non-guessable' keys) is also
91 rather simple. 91 rather simple.
92 92
93 In real world, source would be likely some big image, rendered 93 In real world, source would be likely some big image, rendered
94 representation of it a thumbnail / preview of it. Or some LaTeX 94 representation of it a thumbnail / preview of it. Or some LaTeX
95 source and its rendered representation as png image. 95 source and its rendered representation as png image.
96 Key calculation could be some MAC or some other hard to guess and 96 Key calculation could be some MAC or some other hard to guess and
97 unique string. 97 unique string.
98 """ 98 """