Exemplo n.º 1
0
class TestInboxLabel(TestCase):
    class MockOrgUnit(object):
        def label(self):
            return 'Poscht isch da'

    def setUp(self):
        self.org_unit = self.MockOrgUnit()
        self.actor = InboxActor('some_inbox', org_unit=self.org_unit)

    def test_get_label(self):
        self.assertEqual(u'Inbox: Poscht isch da', self.actor.get_label())
Exemplo n.º 2
0
class TestInboxLabel(TestCase):
    class MockOrgUnit(object):
        def label(self):
            return "Poscht isch da"

    def setUp(self):
        self.org_unit = self.MockOrgUnit()
        self.actor = InboxActor("some_inbox", org_unit=self.org_unit)

    def test_get_label(self):
        self.assertEqual(u"Inbox: Poscht isch da", self.actor.get_label())
Exemplo n.º 3
0
 def setUp(self):
     self.org_unit = self.MockOrgUnit()
     self.actor = InboxActor('some_inbox', org_unit=self.org_unit)
Exemplo n.º 4
0
 def setUp(self):
     self.org_unit = self.MockOrgUnit()
     self.actor = InboxActor("some_inbox", org_unit=self.org_unit)