def test_label_for(self): import datetime label_today = gmc.label_for(datetime.datetime(2012, 8, 22)) self.assertEqual(label_today, "bak_20120822") label_tomorrow = gmc.label_for(datetime.datetime(2012, 8, 23)) self.assertEqual(label_tomorrow, "bak_20120823")
def test_delete_label(self): self.gmail.connect() self.gmail.create_label("prova") self.gmail.delete_label("prova") self.gmail.delete_label(gmc.label_for()) self.gmail.delete_label("py") self.gmail.disconnect()