def test_addresses_custom_port(self): __builtin__.__pillar__ = {'marathon': {'http.port': 7070}} self.assertEqual(marathon_client._addresses(), ['http://localhost:7070'])
def test_addresses_empty(self): __builtin__.__salt__['search.mine_by_host'] = lambda a: [] self.assertEqual(marathon_client._addresses(), [])
def test_addresses(self): self.assertEqual(marathon_client._addresses(), ['http://localhost:8080'])