def test_parse_accept_lang_header_returns_iso_3166_language(self): self.assertEqual( django_parse_accept_lang_header('en-GB,en;q=0.5'), (('en-GB', 1.0), ('en', 0.5)), )
def test_parse_accept_lang_header_returns_iso_3166_language(self): self.assertEqual( django_parse_accept_lang_header('fy-NL,fy;q=0.5'), (('fy-NL', 1.0), ('fy', 0.5)), )