Files
mayan-edms/mayan/apps/file_caching/tests/test_models.py
Roberto Rosario 58bcf20a46 Remove tests * imports
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-08-29 23:10:28 -04:00

19 lines
523 B
Python

from __future__ import unicode_literals
from mayan.apps.common.tests.base import BaseTestCase
from .mixins import CacheTestMixin
class CacheModelTestCase(CacheTestMixin, BaseTestCase):
def test_cache_purge(self):
self._create_test_cache()
self._create_test_cache_partition()
self._create_test_cache_partition_file()
cache_total_size = self.test_cache.get_total_size()
self.test_cache.purge()
self.assertNotEqual(cache_total_size, self.test_cache.get_total_size())