<s> from unittest import TestCase <EOL> from unittest . mock import patch <EOL> from openslides . agenda . models import Item <EOL> class TestItemTitle ( TestCase ) : <EOL> @ patch ( '<STR_LIT>' ) <EOL> def test_title_from_content_object ( self , content_object ) : <EOL> item = Item ( ) <EOL> content_object . get_agenda_title . return_value = '<STR_LIT>' <EOL> self . assertEqual ( <EOL> item . title , <EOL> '<STR_LIT>' ) <EOL> @ patch ( '<STR_LIT>' ) <EOL> def test_title_invalid_related ( self , content_object ) : <EOL> item = Item ( ) <EOL> content_object . get_agenda_title . return_value = '<STR_LIT>' <EOL> del content_object . get_agenda_title <EOL> with self . assertRaises ( NotImplementedError ) : <EOL> item . title </s>
