[SCM] morituri/master: pep8 fixes
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:41 UTC 2014
The following commit has been merged in the master branch:
commit 4d975b6d260ccbbb53a2b4aedbecae10159eec7f
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Sun Nov 11 22:25:24 2012 +0000
pep8 fixes
diff --git a/morituri/test/test_common_renamer.py b/morituri/test/test_common_renamer.py
index e988952..795d8d2 100644
--- a/morituri/test/test_common_renamer.py
+++ b/morituri/test/test_common_renamer.py
@@ -8,7 +8,9 @@ import unittest
from morituri.common import renamer
+
class RenameInFileTestcase(unittest.TestCase):
+
def setUp(self):
(fd, self._path) = tempfile.mkstemp(suffix='.morituri.renamer.infile')
os.write(fd, 'This is a test\nThis is another\n')
@@ -36,7 +38,9 @@ class RenameInFileTestcase(unittest.TestCase):
self.assertEquals(output, 'That was some test\nThat was somenother\n')
os.unlink(self._path)
+
class RenameFileTestcase(unittest.TestCase):
+
def setUp(self):
(fd, self._source) = tempfile.mkstemp(suffix='.morituri.renamer.file')
os.write(fd, 'This is a test\nThis is another\n')
@@ -73,8 +77,10 @@ class RenameFileTestcase(unittest.TestCase):
output = open(self._destination).read()
self.assertEquals(output, 'This is a test\nThis is another\n')
os.unlink(self._destination)
-
+
+
class OperatorTestCase(unittest.TestCase):
+
def setUp(self):
self._statePath = tempfile.mkdtemp(suffix='.morituri.renamer.operator')
self._operator = renamer.Operator(self._statePath, 'test')
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list