class CacherTest(TestCase): cache = None def setUp(self): self.cache = CacherMixin() def test_empty(self): self.assertTrue(self.cache.cache_get('empty') is None) def test_set(self): self.cache.cache_set('value', 42) self.assertEqual(self.cache.cache_get('value'), 42)
def setUp(self): self.cache = CacherMixin()