Пофиксил тесты

This commit is contained in:
rzaitov 2013-11-12 20:09:33 +04:00
parent bd26508185
commit e9ce303a6c
4 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ another bla
<include 'paht2'>
yet another bla"""
processedText = self.includeText.processText(text)
processedText = self.includeText.processText(text, self.includeText)
expected = """
bla bla

View File

@ -8,12 +8,12 @@ class TestCommentRemover(unittest.TestCase):
def test_startsWithComment(self):
line = '# this line is comment'
newLine = self.commentRemover.processText(line)
newLine = self.commentRemover.processText(line, self.commentRemover)
self.assertEqual('', newLine)
def test_containsComment(self):
line = 'this line contains # a comment'
newLine = self.commentRemover.processText(line)
newLine = self.commentRemover.processText(line, self.commentRemover)
self.assertEqual('this line contains ', newLine)

View File

@ -21,6 +21,6 @@ class TestMacroResolver(unittest.TestCase):
def test_resolveLine(self):
line = '{@key1} bla {@some_name} version: {@version}'
newLine = self.macroResolver.processText(line)
newLine = self.macroResolver.processText(line, self.macroResolver)
self.assertEqual('hello world bla another name version: 1.2.3', newLine)

View File

@ -8,6 +8,6 @@ class TestStripper(unittest.TestCase):
def test_stripLine(self):
line = ' \tSome text \t\r\n'
newLine = self.stripper.processText(line)
newLine = self.stripper.processText(line, self.stripper)
self.assertEqual('Some text', newLine)