Closed hieueastagile closed 7 years ago
I couldn't reproduce this issue. I tried:
expect(u'Một con mèo').to.eq('Một con mèo')
expect(u'Cat').to.eq('Cat')
Both passed.
It's not the matter of comparing unicode, but the unicode inside a hash/list, please check two links that I included above @catriuspham
Ah, I just found out that this issue only occurs in Python 2.
@hieueastagile Do you want to deal with multi-level list/dict with unicode string too? For example, this should pass:
s_list = [
['Mèo']
]
u_list = [
[u'Mèo']
]
expect(s_list).to.eq(u_list)
Same as: https://github.com/vesln/robber.py/issues/9, also an issue which is described in pandoodle-scrapy