break tests by fixing them

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 00:48:29 +02:00
parent 603f1c3ae0
commit 326ff67283

24
test.py
View file

@ -89,9 +89,9 @@ class Config(unittest.TestCase):
def test_initial_manifest_different_parameter(self): def test_initial_manifest_different_parameter(self):
manifest_fd = open(self.init_manifest, "w") manifest_fd = open(self.init_manifest, "w")
manifest_fd.writelines(["#!/bin/sh", manifest_fd.writelines(["#!/bin/sh\n",
"__file " + self.temp_dir + "--mode 0700", "__file " + self.temp_dir + "--mode 0700\n",
"__file " + self.temp_dir + "--mode 0600", "__file " + self.temp_dir + "--mode 0600\n",
]) ])
manifest_fd.close() manifest_fd.close()
@ -99,9 +99,9 @@ class Config(unittest.TestCase):
def test_initial_manifest_parameter_added(self): def test_initial_manifest_parameter_added(self):
manifest_fd = open(self.init_manifest, "w") manifest_fd = open(self.init_manifest, "w")
manifest_fd.writelines(["#!/bin/sh", manifest_fd.writelines(["#!/bin/sh\n",
"__file " + self.temp_dir, "__file " + self.temp_dir + '\n',
"__file " + self.temp_dir + "--mode 0600", "__file " + self.temp_dir + "--mode 0600\n",
]) ])
manifest_fd.close() manifest_fd.close()
@ -109,9 +109,9 @@ class Config(unittest.TestCase):
def test_initial_manifest_parameter_removed(self): def test_initial_manifest_parameter_removed(self):
manifest_fd = open(self.init_manifest, "w") manifest_fd = open(self.init_manifest, "w")
manifest_fd.writelines(["#!/bin/sh", manifest_fd.writelines(["#!/bin/sh\n",
"__file " + self.temp_dir + "--mode 0600", "__file " + self.temp_dir + "--mode 0600\n",
"__file " + self.temp_dir, "__file " + self.temp_dir + "\n",
]) ])
manifest_fd.close() manifest_fd.close()
@ -119,9 +119,9 @@ class Config(unittest.TestCase):
def test_initial_manifest_parameter_twice(self): def test_initial_manifest_parameter_twice(self):
manifest_fd = open(self.init_manifest, "w") manifest_fd = open(self.init_manifest, "w")
manifest_fd.writelines(["#!/bin/sh", manifest_fd.writelines(["#!/bin/sh\n",
"__file " + self.temp_dir + "--mode 0600", "__file " + self.temp_dir + "--mode 0600\n",
"__file " + self.temp_dir + "--mode 0600", "__file " + self.temp_dir + "--mode 0600\n",
]) ])
manifest_fd.close() manifest_fd.close()