quality fixes

This commit is contained in:
jinder1s
2019-10-09 09:30:52 -04:00
parent d8b7a2e1fe
commit 93dcd26118

View File

@@ -4,6 +4,7 @@
Tests for js_utils.py
"""
from __future__ import absolute_import
import re
import six.moves.html_parser # pylint: disable=import-error
import json
from unittest import TestCase
@@ -12,7 +13,6 @@ from mako.template import Template
from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_string
import six # pylint: disable=ungrouped-imports
import re
class TestJSUtils(TestCase):
@@ -141,7 +141,6 @@ class TestJSUtils(TestCase):
r""test_tuple": [1, 2, 3], "test_string": "
r""test-=&\\;'\"<>\u2603"}"
)
expected_attr_json_for_html = "data-test-dict='" + expected_json_for_html + "'"
self._validate_expectation_of_json_for_html(test_dict, expected_json_for_html)
self.assertIn(""test_tuple": [1, 2, 3]", out)
self.assertIn(""test_number": 3.5", out)