예제 #1
0
 def test_all_hosts_empty_mine_with_attribute(self):
     __builtin__.__salt__['mine.get'] = lambda a, b, c: {'host1': {'fqdn': 1, 'b': 2}, 'host2': {'fqdn': 2, 'b': 2}}
     self.assertEqual(search.all_hosts(), [1, 2])
예제 #2
0
 def test_all_hosts_empty_mine(self):
     self.assertEqual(search.all_hosts(), [])