

def test_get_locales_prefix(self):
    if (len(self.locales) == 1):
        raise nose.SkipTest('Only a single locale found, no point in trying to test filtering locale prefixes')
    first_locale = self.locales[0]
    assert (len(tm.get_locales(prefix=first_locale[:2])) > 0)

dataset/ETHPy150Open pydata/pandas/pandas/tools/tests/test_util.py TestLocaleUtils.test_get_locales_prefix/original