File: test_finder.py

package info (click to toggle)
python-django-compressor 4.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,108 kB
  • sloc: python: 4,900; makefile: 123; javascript: 5
file content (14 lines) | stat: -rw-r--r-- 443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.test import TestCase

from compressor.finders import CompressorFinder
from compressor.storage import CompressorFileStorage


class FinderTestCase(TestCase):
    def test_has_correct_storage(self):
        finder = CompressorFinder()
        self.assertTrue(type(finder.storage) is CompressorFileStorage)

    def test_list_returns_empty_list(self):
        finder = CompressorFinder()
        self.assertEqual(finder.list([]), [])