Files
whipper-gui/morituri/test/test_program_cdparanoia.py
Thomas Vander Stichele 08789fc6cb * morituri/test/cdparanoia.progress (added):
* morituri/test/test_program_cdparanoia.py (added):
	* morituri/program/__init__.py (added):
	* morituri/program/cdparanoia.py (added):
	  Add a module to wrap cdparanoia.  Add a test for parsing
	  the progress report output.
2009-05-01 18:31:41 +00:00

20 lines
520 B
Python

# -*- Mode: Python; test-case-name: morituri.test.test_program_cdparanoia -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
import unittest
from morituri.program import cdparanoia
class ParseTestCase(unittest.TestCase):
def setUp(self):
path = os.path.join(os.path.dirname(__file__),
'cdparanoia.progress')
self._parser = cdparanoia.ProgressParser()
self._handle = open(path)
def testParse(self):
for line in self._handle.readlines():
self._parser.parse(line)