def test_ens_get_seu_social(self): self.assertEqual("-", get_seu_social(Mock(seu_social=None))) self.assertEqual(u"Espanya", get_seu_social(Mock(seu_social=u"Espanya"))) self.assertEqual(u"Estranger", get_seu_social(Mock(seu_social=u"Estranger", seu_social_estranger=None))) self.assertEqual(u"Connemara", get_seu_social(Mock(seu_social=u"Estranger", seu_social_estranger="Connemara")))
def seu_social(self): return get_seu_social(self.context)