# HG changeset patch # User Tero Marttila # Date 1425252288 -7200 # Node ID 3da02c7e57813262f0540b33a16f0832e94d1f56 # Parent e9e657b74fc96d090566bb7d791f5c25ea3b02c5 pvl.dhcp.config: fix build_block() doctests diff -r e9e657b74fc9 -r 3da02c7e5781 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;