File: test_finder.py

package info (click to toggle)
python-django-compressor 2.0-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 896 kB
  • sloc: python: 3,917; makefile: 152
file content (15 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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([]), [])