--- 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;