From fbde5ab0b888ddb84310f2c6e211fd37e38135e8 Mon Sep 17 00:00:00 2001 From: Fantomas42 Date: Tue, 10 Sep 2013 23:12:24 +0200 Subject: [PATCH] Change the reading method of generated output in tests --- bvc/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bvc/tests.py b/bvc/tests.py index 992ce39..1996000 100644 --- a/bvc/tests.py +++ b/bvc/tests.py @@ -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' @@ -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' @@ -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' @@ -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'