Example #1
0
 def test_removes_umlauts(self):
     string = u'\xe4'
     self.assertEqual(normalise_string(string), u'a')
Example #2
0
 def test_supports_decomposed_unicode(self):
     string = u'a\u0308'
     self.assertEqual(normalise_string(string), u'a')
Example #3
0
 def test_supports_plain_string(self):
     string = "test"
     self.assertEqual(normalise_string(string), u"test")
Example #4
0
 def test_returns_lower_case(self):
     string = u'A tEst'
     self.assertEqual(normalise_string(string), u'a test')
 def item_sort_key(item):
     return (to_human_sortable_key(repo_refnum(item)),
             normalise_string(item['title']),
             item['title'],
             item['decision_number'])
Example #6
0
 def test_supports_empty_string(self):
     string = None
     self.assertEqual(normalise_string(string), None)
Example #7
0
 def test_returns_lower_case(self):
     string = u'A tEst'
     self.assertEqual(normalise_string(string), u'a test')
Example #8
0
 def test_removes_umlauts(self):
     string = u'\xe4'
     self.assertEqual(normalise_string(string), u'a')
Example #9
0
 def test_supports_empty_string(self):
     string = None
     self.assertEqual(normalise_string(string), None)
Example #10
0
 def test_supports_plain_string(self):
     string = "test"
     self.assertEqual(normalise_string(string), u"test")
Example #11
0
 def test_supports_decomposed_unicode(self):
     string = u'a\u0308'
     self.assertEqual(normalise_string(string), u'a')
 def item_sort_key(item):
     return (to_human_sortable_key(item['dossier_reference_number']),
             normalise_string(item['title']), item['title'],
             item['decision_number'])
Example #13
0
 def item_sort_key(item):
     return (normalise_string(item['repository_folder_title']),
             item['repository_folder_title'],
             normalise_string(item['title']),
             item['title'],
             item['decision_number'])
 def item_sort_key(item):
     return (to_human_sortable_key(repo_refnum(item)),
             normalise_string(item['title']), item['title'],
             item['decision_number'])
 def item_sort_key(item):
     return (normalise_string(item['repository_folder_title']),
             item['repository_folder_title'], normalise_string(
                 item['title']), item['title'], item['decision_number'])