--- a/pvl/hosts/tests.py Mon Mar 02 00:25:21 2015 +0200
+++ b/pvl/hosts/tests.py Mon Mar 02 00:38:50 2015 +0200
@@ -587,6 +587,20 @@
], [])
])
+ def testHostFQDN(self):
+ host = Host.build('foo.test', 'test',
+ ip = '192.0.2.1',
+ ethernet = '00:11:22:33:44:55',
+ )
+
+ self.assertBlocksEqual(list(dhcp.dhcp_host(host)), [
+ (('host', 'foo.test'), [
+ ('option', 'host-name', "foo.test"),
+ ('fixed-address', '192.0.2.1'),
+ ('hardware', 'ethernet', '00:11:22:33:44:55'),
+ ], [])
+ ])
+
def testHostStatic(self):
host = Host.build('foo', 'test',
ip = '192.0.2.1',