'helpers: check correctness of clean_name() function'

def test_clean_name(self):

    cases = {u'    Wei\xdfe    &    rose    ': 'Weisse    and    rose', u'Multiple    /    spaces': 'Multiple    spaces', u"Kevin's    m\xb2": 'Kevins    m2', u'Symphon\u0119y    N\xba9': 'Symphoney    No.9', u'\xc6\xe6\xdf\xf0\xde\u0132\u0133': u'AeaessdThIJ\u0131j', u'Obsessi\xf3    (Cerebral    Apoplexy    remix)': 'obsessio    cerebral    apoplexy    remix', u'Dokt\xf3r    Ha\u0142aba\u0142a    i    siedmiu    zboj\xf3w': 'doktor    halabala    i    siedmiu    zbojow', u'Arbetets    S\xf6ner    och    D\xf6ttrar': 'arbetets    soner    och    dottrar', u'Bj\xf6rk    Gu\xf0mundsd\xf3ttir': 'bjork    gudmundsdottir', u"L'Arc~en~Ciel": 'larc    en    ciel', u'Orquesta    de    la    Luz    (\u30aa\u30eb\u30b1\u30b9\u30bf\u30fb\u30c7\u30fb\u30e9\u30fb\u30eb\u30b9)': u'Orquesta    de    la    Luz    \u30aa\u30eb\u30b1\u30b9\u30bf    \u30c7    \u30e9    \u30eb\u30b9'}
    for (first, second) in cases.iteritems():
        nf = clean_name(first).lower()
        ns = clean_name(second).lower()
        self.assertEqual(nf, ns, (u'check    cleaning    of    case    (%s,%s)' % (nf, ns)))
