def test_print_leaflet_teather_empty_date_and_missing_icon(self): leaflet = Leaflet('Macbeth', ['Fleance', 'Seyton'], ['\U0001F318']) handbill = ("""******************** * * * 'Macbeth' * * * * * * * * Fleance 🌘 * * Seyton * * * ********************""") self.assertEqual(leaflet.print_leaflet(), handbill, msg="Expected a leaflet for Macbeth " "with two artists and one icon but without date.")
def test_print_leaflet_webinar(self): leaflet = Leaflet('Webinar', ['Vince', 'Chris', 'Leo'], ['\U0001F4DA', '\U0001F4BB', '\U0001F3AF']) leaflet.set_date(29, 1, 2020) handbill = ("""******************** * * * 'Webinar' * * * * January 29, 2020 * * * * Vince 📚 * * Chris 💻 * * Leo 🎯 * * * ********************""") self.assertEqual(leaflet.print_leaflet(), handbill, msg="Expected a leaflet for Webinar " "with a complete date, with three artists and icons.")
def test_print_leaflet_concert(self): leaflet = Leaflet('Concert', ['John', 'Benjamin', 'Max'], ['\U0001F3B8', '\U0001F3A4', '\U0001F3B9']) leaflet.set_date(30, 4) handbill = ("""******************** * * * 'Concert' * * * * April 30 * * * * John 🎸 * * Benjamin 🎤 * * Max 🎹 * * * ********************""") self.assertEqual(leaflet.print_leaflet(), handbill, msg="Expected a leaflet for Concert " "with a partial date, three artists and three icons.")