def test_has_institution_yes(self):
     """Verify has_institution() method returns True when the conditions are
     right."""
     record = Record("Carl Friedrich Gauss", "Universitaet Helmstedt", 1799,
                     18231)
     self.assert_(record.has_institution())
     record = Record("Carl Friedrich Gauss", "Universitaet Helmstedt", 1799,
                     18231)
     self.assertTrue(record.has_institution())
 def test_has_institution_no(self):
     """Verify has_institution() method returns False when the conditions
     are right."""
     record = Record("Carl Friedrich Gauss", None, 1799, 18231)
     self.assert_(not record.has_institution())
 def test_has_institution_yes(self):
     """Verify has_institution() method returns True when the conditions are
     right."""
     record = Record("Carl Friedrich Gauss", "Universitaet Helmstedt", 1799,
                     18231)
     self.assert_(record.has_institution())
 def test_has_institution_no(self):
     """Verify has_institution() method returns False when the conditions
     are right."""
     record = Record("Carl Friedrich Gauss", None, 1799, 18231)
     self.assertTrue(not record.has_institution())