Skip to content

Commit

Permalink
Change the reading method of generated output in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed Sep 10, 2013
1 parent 75974dc commit fbde5ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bvc/tests.py
Expand Up @@ -260,7 +260,7 @@ def test_write_section(self):
config_parser.write_section(config_file, 'Section', 24)
config_file.seek(0)
self.assertEquals(
''.join(config_file.readlines()),
config_file.read().decode('utf-8'),
'[Section]\n'
'Option = Value\n'
'Option-void = \n'
Expand All @@ -278,7 +278,7 @@ def test_write_section_low_indentation(self):
config_parser.write_section(config_file, 'Section', 12)
config_file.seek(0)
self.assertEquals(
''.join(config_file.readlines()),
config_file.read().decode('utf-8'),
'[Section]\n'
'Option = Value\n'
'Option-void = \n'
Expand All @@ -297,7 +297,7 @@ def test_write(self):
config_parser.write(config_file.name)
config_file.seek(0)
self.assertEquals(
''.join(config_file.readlines()),
config_file.read().decode('utf-8'),
'[Section 1]\n'
'Option = Value\n'
'Option-void = \n'
Expand All @@ -318,7 +318,7 @@ def test_write_low_indentation(self):
config_parser.write(config_file.name, 12)
config_file.seek(0)
self.assertEquals(
''.join(config_file.readlines()),
config_file.read().decode('utf-8'),
'[Section 1]\n'
'Option = Value\n'
'Option-void = \n'
Expand Down

0 comments on commit fbde5ab

Please sign in to comment.