def test_unicode_full(self):
        """Test __unicode__() method for Node with complete record."""
        node = Node(self.record, set(), set())
        nodestr = node.__unicode__()
        nodestrexpt = u"Carl Friedrich Gau\xdf \\nUniversit\xe4t Helmstedt \
(1799)"
        self.assertEqual(nodestr, nodestrexpt)
 def test_unicode_no_inst_no_id(self):
     """Test __unicode__() method for Node containing record without
     institution or year."""
     record = Record(self.record.name, None, None, 18231)
     node = Node(record, set(), set())
     nodestr = node.__unicode__()
     nodestrexpt = u"Carl Friedrich Gau\xdf"
     self.assertEqual(nodestr, nodestrexpt)
 def test_unicode_no_year(self):
     """
     Test __unicode__() method for Node containing record without year.
     """
     record = Record(self.record.name, self.record.institution, None, 18231)
     node = Node(record, set(), set())
     nodestr = node.__unicode__()
     nodestrexpt = u"Carl Friedrich Gau\xdf \\nUniversit\xe4t Helmstedt"
     self.assertEqual(nodestr, nodestrexpt)