Exemple #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)
Exemple #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)
Exemple #3
0
 def test_sort_func(self):
     # we can get a sort func
     func = sort_func()
     assert func("Öre") == normalize("Öre")
Exemple #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)
Exemple #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)
Exemple #6
0
 def test_sort_func(self):
     # we can get a sort func
     func = sort_func()
     assert func("Öre") == normalize("Öre")