# coding: utf-8

# DJANGO IMPORTS
from django.test import TestCase
from django.http import QueryDict

# FILEBROWSER IMPORTS
from filebrowser.templatetags.fb_tags import get_file_extensions


class TemplateTagsTests(TestCase):
    def test_get_file_extensions(self):
        self.assertEqual(
            sorted(get_file_extensions('')),
            sorted([
                '.pdf', '.doc', '.rtf', '.txt', '.xls', '.csv', '.docx', '.mov',
                '.wmv', '.mpeg', '.mpg', '.avi', '.rm', '.jpg', '.jpeg', '.gif', '.png',
                '.tif', '.tiff', '.mp3', '.mp4', '.wav', '.aiff', '.midi', '.m4p', '.m4v', '.webm'
            ]))
        self.assertEqual(
            get_file_extensions(QueryDict('type=image')),
            ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff']
        )

@@ -190,16 +190,33 @@
 %0A%0Aclass 
+GetFileExtensions
 Template
@@ -218,17 +218,16 @@
 plateTag
-s
 Tests(Te
@@ -252,31 +252,19 @@
 est_get_
-file_extensions
+all
 (self):%0A
@@ -639,16 +639,50 @@
      %5D))
+%0A%0A    def test_get_filtered(self):
 %0A       

Rename templatetag tests