From a32194033a6dcfe368b7ff64789fa152f090e7e6 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 21 Dec 2008 16:39:17 +0100 Subject: Move tests for ParamFile. --- source4/param/tests/bindings.py | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source4/param') diff --git a/source4/param/tests/bindings.py b/source4/param/tests/bindings.py index d1d71e4485..41a67f93fc 100644 --- a/source4/param/tests/bindings.py +++ b/source4/param/tests/bindings.py @@ -50,23 +50,3 @@ class LoadParmTestCase(unittest.TestCase): file = param.LoadParm() file.load_default() -class ParamTestCase(unittest.TestCase): - def test_init(self): - file = param.ParamFile() - self.assertTrue(file is not None) - - def test_add_section(self): - file = param.ParamFile() - file.add_section("global") - self.assertTrue(file["global"] is not None) - - def test_set_param_string(self): - file = param.ParamFile() - file.add_section("global") - file.set_string("data", "bar") - self.assertEquals("bar", file.get_string("data")) - - def test_get_section(self): - file = param.ParamFile() - self.assertEquals(None, file.get_section("unknown")) - self.assertRaises(KeyError, lambda: file["unknown"]) -- cgit