def testRenderBadges(self): registrants = [ Registrant('time', 'Jona1than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), Registrant('time', 'Jona2than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), Registrant('time', 'Jona3than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), Registrant('time', 'Jona4than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), Registrant('time', 'Jona5than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), Registrant('time', 'Jona6than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), Registrant('time', 'Jona7than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), Registrant('time', 'Jona8than Andrew Wolter', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'), ] printer = BadgePrinter(registrants, filename='test_all_badges_tmp.pdf') printer.drawBadges()
def testRendersUnicodeIntoPdfFromListOfNames(self): registrants = [ Registrant('time', u'Jo\xf1\xf1\xf3n Andrew Unicode', 'jwolter', 'US-MTV', 'Green Beret of the Testability Corps'),] badge_printer = BadgePrinter(registrants, filename='test_rendering_unicode.pdf') badge_printer.drawBadges()