Test duplicate count is tracked.
(self, cache)
| 35 | assert cached2.call_count == 3 |
| 36 | |
| 37 | def test_duplicate_count_tracking(self, cache): |
| 38 | """Test duplicate count is tracked.""" |
| 39 | cache.put("sqrt", {"x": 18}, 4.2426) |
| 40 | assert cache.duplicate_count == 0 |
| 41 | |
| 42 | cache.get("sqrt", {"x": 18}) |
| 43 | assert cache.duplicate_count == 1 |
| 44 | |
| 45 | def test_store_variable(self, cache): |
| 46 | """Test storing named variables.""" |