'Ensure that unicode representation works'

def test_repr(self):

    class Article(Document, ):
        title = StringField()
        def __unicode__(self):
            return self.title
    doc = Article(title=u'\u043f\u0440\u0438\u0432\u0435\u0442    \u043c\u0438\u0440')
    self.assertEqual('<Article:    \xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82    \xd0\xbc\xd0\xb8\xd1\x80>', repr(doc))
