예제 #1
0
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)
예제 #2
0
 def setUp(self):
     self.cache = CacherMixin()