Exemple #1
0
 def test_init(self):
     """
     DkronClient: Test __init__ has list
     """
     client = DkronClient(hosts="localhost:8080")
     self.assertEqual(
         client.hosts, ["localhost:8080"],
         "Exp: '%s', Got: '%s'" % (['localhost:8080'], client.hosts))
Exemple #2
0
 def setUp(self):
     self.client = DkronClient(hosts=["localhost:8080"])