implemented inventory_hostname lookup in v2

This commit is contained in:
Brian Coca 2015-10-15 11:19:11 -04:00
commit 9b088a1e40
3 changed files with 44 additions and 22 deletions

View file

@ -92,10 +92,10 @@ class TestInventory(unittest.TestCase):
for p in self.patterns:
r = self.patterns[p]
self.assertEqual(r, self.i._split_pattern(p))
self.assertEqual(r, self.i.split_host_pattern(p))
for p, r in self.pattern_lists:
self.assertEqual(r, self.i._split_pattern(p))
self.assertEqual(r, self.i.split_host_pattern(p))
def test_ranges(self):