'Testing collation ordering'

def test_collation_order(self):

    for group in [(u'\u0160aa', u'Smith', u'Sol\u017eenicyn', u'\u0160tep\xe1nek'), (u'01', u'1')]:
        last = None
        for x in group:
            (order, length) = icu.numeric_collator().collation_order(x)
            if (last is not None):
                self.ae(last, order, (u'Order    for    %s    not    correct:    %s    !=    %s' % (x, last, order)))
            last = order
    self.ae(dict(icu.partition_by_first_letter([u'A1', u'', u'a1', u'\U0001f431', u'\U0001f431x'])), {u'    ': [u''], u'A': [u'A1', u'a1'], u'\U0001f431': [u'\U0001f431', u'\U0001f431x']})
