def test_short_format(self): data = dict(self.sample) del (data['fpage']) del (data['lpage']) del (data['elocation']) result = short_format(**data) self.assertEqual('Rev.Mal-Estar Subj, 2011 67(9) suppl 3', result)
def legend(self): leg_dict = { 'title': self.journal.title, 'short_title': self.journal.short_title, 'pubdate': str(self.issue.year), 'volume': self.issue.volume, 'number': self.issue.number, 'suppl': self.issue.suppl_text } return short_format(**leg_dict)
def test_short_format_suppl_volume_1(self): data = { 'title': 'Revista de Odontologia da Universidade de São Paulo', 'short_title': 'Rev. Odontol. Univ. São Paulo', 'pubdate': '1997', 'volume': '11', 'number': '', 'suppl': '0' } result = short_format(**data) self.assertEqual('Rev. Odontol. Univ. São Paulo, 1997 11 suppl', result)