pvl/hosts/tests.py
changeset 503 a56456f901e8
parent 502 ac4e0f2df80c
child 504 ee0a3dcacb95
--- a/pvl/hosts/tests.py	Thu Feb 26 16:37:24 2015 +0200
+++ b/pvl/hosts/tests.py	Thu Feb 26 16:38:31 2015 +0200
@@ -61,8 +61,17 @@
                     ethernet    = {None: '01:23:45:67:89:ab'},
                 )),
         ])
+    
+    def testApplyHostFqdn(self):
+        self.assertHostsEqual(config.apply_host_config(self.options, 'test', 'asdf@foo.test'), [
+                ('asdf@foo.test', dict()),
+        ])
 
-    def testApplyHostsExpand(self):
+        self.assertHostsEqual(config.apply_host_config(self.options, 'test', 'asdf.test2'), [
+                ('asdf.test2@', dict()),
+        ])
+
+    def testApplyHostExpand(self):
         self.assertHostsEqual(config.apply_host_config(self.options, 'asdf', 'asdf{1-3}', ip='10.100.100.$'), [
                 ('asdf1@asdf', dict(ip=ipaddr.IPAddress('10.100.100.1'))),
                 ('asdf2@asdf', dict(ip=ipaddr.IPAddress('10.100.100.2'))),