pep8 fixes
This commit is contained in:
@@ -8,7 +8,9 @@ import unittest
|
|||||||
|
|
||||||
from morituri.common import renamer
|
from morituri.common import renamer
|
||||||
|
|
||||||
|
|
||||||
class RenameInFileTestcase(unittest.TestCase):
|
class RenameInFileTestcase(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
(fd, self._path) = tempfile.mkstemp(suffix='.morituri.renamer.infile')
|
(fd, self._path) = tempfile.mkstemp(suffix='.morituri.renamer.infile')
|
||||||
os.write(fd, 'This is a test\nThis is another\n')
|
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')
|
self.assertEquals(output, 'That was some test\nThat was somenother\n')
|
||||||
os.unlink(self._path)
|
os.unlink(self._path)
|
||||||
|
|
||||||
|
|
||||||
class RenameFileTestcase(unittest.TestCase):
|
class RenameFileTestcase(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
(fd, self._source) = tempfile.mkstemp(suffix='.morituri.renamer.file')
|
(fd, self._source) = tempfile.mkstemp(suffix='.morituri.renamer.file')
|
||||||
os.write(fd, 'This is a test\nThis is another\n')
|
os.write(fd, 'This is a test\nThis is another\n')
|
||||||
@@ -73,8 +77,10 @@ class RenameFileTestcase(unittest.TestCase):
|
|||||||
output = open(self._destination).read()
|
output = open(self._destination).read()
|
||||||
self.assertEquals(output, 'This is a test\nThis is another\n')
|
self.assertEquals(output, 'This is a test\nThis is another\n')
|
||||||
os.unlink(self._destination)
|
os.unlink(self._destination)
|
||||||
|
|
||||||
|
|
||||||
class OperatorTestCase(unittest.TestCase):
|
class OperatorTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self._statePath = tempfile.mkdtemp(suffix='.morituri.renamer.operator')
|
self._statePath = tempfile.mkdtemp(suffix='.morituri.renamer.operator')
|
||||||
self._operator = renamer.Operator(self._statePath, 'test')
|
self._operator = renamer.Operator(self._statePath, 'test')
|
||||||
|
|||||||
Reference in New Issue
Block a user