summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_jslex.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils_tests/test_jslex.py')
-rw-r--r--tests/utils_tests/test_jslex.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils_tests/test_jslex.py b/tests/utils_tests/test_jslex.py
index 084e2feb5b..97e6dbc109 100644
--- a/tests/utils_tests/test_jslex.py
+++ b/tests/utils_tests/test_jslex.py
@@ -5,6 +5,7 @@
from django.test import TestCase
from django.utils.jslex import JsLexer, prepare_js_for_gettext
+
class JsTokensTest(TestCase):
LEX_CASES = [
# ids
@@ -105,6 +106,7 @@ class JsTokensTest(TestCase):
r'string "\")"', "punct ;"]),
]
+
def make_function(input, toks):
def test_func(self):
lexer = JsLexer()
@@ -207,6 +209,7 @@ GETTEXT_CASES = (
class JsToCForGettextTest(TestCase):
pass
+
def make_function(js, c):
def test_func(self):
self.assertMultiLineEqual(prepare_js_for_gettext(js), c)