def test_unicode(self):
        topic = models.Topic.objects.get(name="x", parent=None)
        tree = topic.get_descendants(True)
        result = [unicode(obj) for obj in tree]
        expected = [u"x", u"x/y", u"x/y/c"]
        self.assertEquals(result, expected)
Tests that the __unicode__() method displays the correct thing.
dataset/ETHPy150Open malcolmt/django-acacia/acacia/tests/test_models.py/TopicTest.test_unicode