pvl/hosts/tests.py
changeset 492 ddd13dadf6a8
parent 491 cfcb47a3dc3e
child 493 c9725dd0d48c
--- a/pvl/hosts/tests.py	Thu Feb 26 15:53:57 2015 +0200
+++ b/pvl/hosts/tests.py	Thu Feb 26 15:54:32 2015 +0200
@@ -427,6 +427,7 @@
         host = Host.build('foo', 'test',
                 ip          = '192.0.2.1',
                 ethernet    = '00:11:22:33:44:55',
+                owner       = 'foo',
         )
 
         self.assertBlocksEqual(list(dhcp.dhcp_host(host)), [
@@ -434,7 +435,16 @@
                 ('option', 'host-name', "foo"),
                 ('fixed-address', '192.0.2.1'),
                 ('hardware', 'ethernet', '00:11:22:33:44:55'),
-            ], None)
+                ], dict(comment="Owner: foo"))
+        ])
+
+    def testHostStatic(self):
+        host = Host.build('foo', 'test',
+                ip          = '192.0.2.1',
+        )
+
+        self.assertBlocksEqual(list(dhcp.dhcp_host(host)), [
+
         ])
 
     def testHostDynamic(self):