コード例 #1
0
 def test_addresses_custom_port(self):
     __builtin__.__pillar__ = {'marathon': {'http.port': 7070}}
     self.assertEqual(marathon_client._addresses(), ['http://localhost:7070'])
コード例 #2
0
 def test_addresses_empty(self):
     __builtin__.__salt__['search.mine_by_host'] = lambda a: []
     self.assertEqual(marathon_client._addresses(), [])
コード例 #3
0
 def test_addresses(self):
     self.assertEqual(marathon_client._addresses(), ['http://localhost:8080'])
コード例 #4
0
 def test_addresses(self):
     self.assertEqual(marathon_client._addresses(),
                      ['http://localhost:8080'])
コード例 #5
0
 def test_addresses_custom_port(self):
     __builtin__.__pillar__ = {'marathon': {'http.port': 7070}}
     self.assertEqual(marathon_client._addresses(),
                      ['http://localhost:7070'])
コード例 #6
0
 def test_addresses_empty(self):
     __builtin__.__salt__['search.mine_by_host'] = lambda a: []
     self.assertEqual(marathon_client._addresses(), [])