def test_skip_empty(self): data = SONGDATA[:] + [dict(artist="", album="", title="")] generated = pyat.format(data, sorted(SONGDATA[0].keys())) self.assertEqual(SONGDATA_FORMATTED, generated)
def test_simple(self): generated = pyat.format(SONGDATA, sorted(SONGDATA[0].keys())) self.assertEqual(SONGDATA_FORMATTED, generated)