示例#1
0
    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")))
示例#2
0
 def seu_social(self):
     return get_seu_social(self.context)