File: test_cache.py

package info (click to toggle)
python-cachetools 1.1.5-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 248 kB
  • sloc: python: 1,550; makefile: 128; sh: 10
file content (11 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
import unittest

from cachetools import Cache

from . import CacheTestMixin


class CacheTest(unittest.TestCase, CacheTestMixin):

    def cache(self, maxsize, missing=None, getsizeof=None):
        return Cache(maxsize, missing=missing, getsizeof=getsizeof)