pvl.dhcp.config: fix build_block() doctests
authorTero Marttila <terom@paivola.fi>
Mon, 02 Mar 2015 01:24:48 +0200
changeset 681 3da02c7e5781
parent 680 e9e657b74fc9
child 682 60dbd952a15e
pvl.dhcp.config: fix build_block() doctests
pvl/dhcp/config.py
--- a/pvl/dhcp/config.py	Mon Mar 02 01:02:48 2015 +0200
+++ b/pvl/dhcp/config.py	Mon Mar 02 01:24:48 2015 +0200
@@ -291,13 +291,13 @@
     """
         Build a complete Block, recursively, yielding output lines.
 
-        >>> for line in build_block(Block(('host', 'foo'), [('hardware', 'ethernet', '00:11:22:33:44:55')]), comment="Testing"): print line
+        >>> for line in build_block(Block(('host', 'foo'), [('hardware', 'ethernet', '00:11:22:33:44:55')], comment="Testing")): print line
         # Testing
         host foo {
             hardware ethernet 00:11:22:33:44:55;
         }
         >>> for line in build_block(Block(('group', ), [('next-server', 'booter')], [ \
-                    (('host', 'foo'), [('hardware', 'ethernet', '00:11:22:33:44:55')], ()) \
+                    Block(('host', 'foo'), [('hardware', 'ethernet', '00:11:22:33:44:55')]) \
                 ])): print line
         group {
             next-server booter;