(self)
| 22 | super(TestThread, self).__init__() |
| 23 | |
| 24 | def run(self): |
| 25 | for i in range(get_cache_size() + 10): |
| 26 | key = "A" + str(i) |
| 27 | cache_item(key, "test", i * self.num) |
| 28 | |
| 29 | item = get_cached_item(key, "test") |
| 30 | |
| 31 | if item != i * self.num: |
| 32 | raise RuntimeError("cache is bogus") |
| 33 | |
| 34 | cache = OrderedDict(_get_cache()) |
| 35 | |
| 36 | self.q.put(cache) |
| 37 | |
| 38 | |
| 39 | class CacheTest(ut.TestCase): |
nothing calls this directly
no test coverage detected