コード例 #1
0
 def test_get_host_pattern(self):
     hosts = collectdflask.get_hosts('*1')
     self.assertEqual(
         hosts,
         ['host1'],
     )
コード例 #2
0
 def test_get_hosts_wildcard(self):
     hosts = collectdflask.get_hosts('*')
     self.assertEqual(
         hosts,
         ['host1', 'host2', 'host3'],
     )
コード例 #3
0
 def test_get_hosts(self):
     hosts = collectdflask.get_hosts()
     self.assertEqual(
         hosts,
         ['host1', 'host2', 'host3'],
     )
コード例 #4
0
    def test_get_host_pattern(self):
        hosts = collectdflask.get_hosts('*1')
        self.assertEqual(
            hosts,
	    ['host1'],
        )
コード例 #5
0
    def test_get_hosts_wildcard(self):
        hosts = collectdflask.get_hosts('*')
        self.assertEqual(
            hosts,
	    ['host1', 'host2', 'host3'],
        )
コード例 #6
0
    def test_get_hosts(self):
        hosts = collectdflask.get_hosts()
        self.assertEqual(
            hosts,
	    ['host1', 'host2', 'host3'],
        )