def test_translation():
 class TranslationTable(tables.Table, ):
  text = tables.Column(verbose_name=ugettext_lazy(u'Text'))
 table = TranslationTable([])
 assert (u'Text' == table.columns[u'text'].header)

def test_translation ( ) : class TranslationTable ( tables . Table , ) : text = tables . Column ( verbose_name = ugettext_lazy ( u'Text' ) ) table = TranslationTable ( [ ] ) assert ( u'Text' == table . columns [ u'text' ] . header )
tests different types of values for the verbose_name property of a column .