def test_parsing_and_disregarding_empty_lines(self): todofile = StringIO( 'x 2012-04-15 2012-04-14 Bake cake+birthday\n\n2012-04-15 Light candles on cake +birthday\n\n') items = autotodo.parse(todofile) self.assertEqual(len(items), 2)
def test_parsing_and_counting(self): todofile = StringIO( 'x 2012-04-15 2012-04-14 Bake cake+birthday\n2012-04-15 Light candles on cake +birthday\n') items = autotodo.parse(todofile) self.assertEqual(len(items), 2)