This file is indexed.

/usr/share/pyshared/tests/test_i18n.py is in python-turbogears2 2.1.5-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# -*- coding: utf-8 -*-

from tg import i18n


def test_sanitize_language_code():
    """Check that slightly malformed language codes can be corrected."""
    for lang in 'pt', 'PT':
        assert i18n.sanitize_language_code(lang) == 'pt'
    for lang in 'pt-br', 'pt_br', 'pt_BR':
        assert i18n.sanitize_language_code(lang) == 'pt_BR'
    for lang in 'foo', 'bar', 'foo-bar':
        assert i18n.sanitize_language_code(lang) == lang