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))
def setUp(self): self.client = DkronClient(hosts=["localhost:8080"])