Exemplo n.º 1
0
    def test_title_supplement_with_related(self, content_object):
        item = Item()
        content_object.get_agenda_title_supplement.return_value = "related_title_supplement"

        self.assertEqual(item.get_title_supplement(), "related_title_supplement")
Exemplo n.º 2
0
    def test_title_supplement_invalid_related(self, content_object):
        item = Item()
        del content_object.get_agenda_title_supplement

        with self.assertRaises(NotImplementedError):
            item.get_title_supplement()
Exemplo n.º 3
0
 def test_title_supplement_without_related(self):
     item = Item()
     self.assertEqual(item.get_title_supplement(), "")