def test_get_host_pattern(self): hosts = collectdflask.get_hosts('*1') self.assertEqual( hosts, ['host1'], )
def test_get_hosts_wildcard(self): hosts = collectdflask.get_hosts('*') self.assertEqual( hosts, ['host1', 'host2', 'host3'], )
def test_get_hosts(self): hosts = collectdflask.get_hosts() self.assertEqual( hosts, ['host1', 'host2', 'host3'], )