--- a/test_dhcp.py Thu Apr 02 20:54:37 2009 +0300
+++ b/test_dhcp.py Thu Apr 02 21:11:01 2009 +0300
@@ -53,6 +53,7 @@
def test_parameter (self) :
self.assert_obj(dhcpc.Parameter("param0", "this", 13, "that"), [ "param0 this 13 that;" ])
+ self.assert_obj(dhcpc.Parameter("param1", comment="testing"), [ "# testing", "param1;" ])
def test_declaration (self) :
self.assert_obj(dhcpc.Declaration("decl0", ["arg0", "arg1"], [
@@ -62,8 +63,8 @@
dhcpc.Declaration("decl0.0", params=[
dhcpc.Parameter("param0.0.1", "value")
])
- ]), [
-
+ ], comment="foo"), [
+ "# foo",
"decl0 arg0 arg1 {",
"\tparam0;",
"\tdecl0.0 {",