pass function, not return :-)

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 15:43:54 +02:00
parent cc87573d6b
commit dc416f5f49

View file

@ -99,7 +99,7 @@ class Config(unittest.TestCase):
]) ])
manifest_fd.close() manifest_fd.close()
self.assertRaises(cdist.Error, self.config.run_initial_manifest()) self.assertRaises(cdist.Error, self.config.run_initial_manifest)
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")
@ -109,7 +109,7 @@ class Config(unittest.TestCase):
]) ])
manifest_fd.close() manifest_fd.close()
self.assertRaises(cdist.Error, self.config.run_initial_manifest()) self.assertRaises(cdist.Error, self.config.run_initial_manifest)
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")
@ -119,7 +119,7 @@ class Config(unittest.TestCase):
]) ])
manifest_fd.close() manifest_fd.close()
self.assertRaises(cdist.Error, self.config.run_initial_manifest()) self.assertRaises(cdist.Error, self.config.run_initial_manifest)
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")