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