Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
10
venv/Lib/site-packages/notebook/tests/test_i18n.py
Normal file
10
venv/Lib/site-packages/notebook/tests/test_i18n.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import nose.tools as nt
|
||||
|
||||
from notebook import i18n
|
||||
|
||||
def test_parse_accept_lang_header():
|
||||
palh = i18n.parse_accept_lang_header
|
||||
nt.assert_equal(palh(''), [])
|
||||
nt.assert_equal(palh('zh-CN,en-GB;q=0.7,en;q=0.3'),
|
||||
['en', 'en_GB', 'zh', 'zh_CN'])
|
||||
nt.assert_equal(palh('nl,fr;q=0'), ['nl'])
|
||||
Loading…
Add table
Add a link
Reference in a new issue