File: test_jslexer.py

package info (click to toggle)
python-babel 1.3%2Bdfsg.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 69,060 kB
  • ctags: 1,644
  • sloc: xml: 582,663; python: 9,389; makefile: 216; sh: 188
file content (10 lines) | stat: -rw-r--r-- 214 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# -*- coding: utf-8 -*-

import six

from babel.messages import jslexer


def test_unquote():
    assert jslexer.unquote_string('""') == ''
    assert jslexer.unquote_string(r'"h\u00ebllo"') == six.u("h\u00ebllo")