* morituri/program/cdrdao.py:

* morituri/test/test_program_cdrdao.py (added):
	  Split out the parser from the task.  Test the parser.
This commit is contained in:
Thomas Vander Stichele
2009-05-04 09:23:35 +00:00
parent aee0a2f128
commit ffbda81f09

View File

@@ -19,6 +19,7 @@ class ParseTestCase(unittest.TestCase):
self._handle = open(path)
def testParse(self):
# FIXME: we should be testing splitting in byte blocks, not lines
for line in self._handle.readlines():
self._parser.read(line)
self.assertEquals(self._parser._starts,