Пример #1
0
 def test_sort_func_case_sensitive(self):
     # we can sort case sensitive
     func = sort_func(case_sensitive=True)
     assert func("UpperCase") == normalize("UpperCase", case_sensitive=True)
Пример #2
0
 def test_sort_func_variant(self):
     # we can set a variant for sort func
     func = sort_func(variant=VARIANT2)
     assert func("Öre") == normalize("Öre", variant=VARIANT2)
Пример #3
0
 def test_sort_func(self):
     # we can get a sort func
     func = sort_func()
     assert func("Öre") == normalize("Öre")
Пример #4
0
 def test_sort_func_case_sensitive(self):
     # we can sort case sensitive
     func = sort_func(case_sensitive=True)
     assert func("UpperCase") == normalize("UpperCase", case_sensitive=True)
Пример #5
0
 def test_sort_func_variant(self):
     # we can set a variant for sort func
     func = sort_func(variant=VARIANT2)
     assert func("Öre") == normalize("Öre", variant=VARIANT2)
Пример #6
0
 def test_sort_func(self):
     # we can get a sort func
     func = sort_func()
     assert func("Öre") == normalize("Öre")