def test_getAllCards(self): fc = FlashcardsFile(StringIO(testfile)).read() self.assertEqual(fc.getAllCards(), testcards)
def test_fieldnames(self): fc = FlashcardsFile(StringIO(testfile)).read() self.assertEqual(['FRONTSIDE', 'BACKSIDE', 'LASTSHOWNDATE', 'NEXTSHOWDATE'], fc.fieldnames())