'Test js_escaped_string escapes &, <, and >, as well as returns a unicode type'

def test_js_escaped_string_escapes_unsafe_html(self):

    malicious_js_string = "</script><script>alert('hello,    ');</script>"
    expected_escaped_string_for_js = unicode('\\u003C/script\\u003E\\u003Cscript\\u003Ealert(\\u0027hello,    \\u0027)\\u003B\\u003C/script\\u003E')
    escaped_string_for_js = js_escaped_string(malicious_js_string)
    self.assertEquals(expected_escaped_string_for_js, escaped_string_for_js)
