Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)

src/f/t/ftw.bridge.proxy-1.1.1/ftw/bridge/proxy/tests/test_client.py   ftw.bridge.proxy(Download)
from ftw.bridge.proxy.client import Client
from ftw.bridge.proxy.client import ClientManager
from ftw.bridge.proxy.interfaces import IClient
from ftw.bridge.proxy.interfaces import IClientManager
from ftw.bridge.proxy.testing import PYRAMID_LAYER
    def test_attributes(self):
        client = Client('clientid',
                        ['ip', 'addresses'],
                        internal_url='http://internal/host',
                        public_url='http://public/host',
    def test_maintenance_mode(self):
        client = Client('clientid',
                        ['ip', 'addresses'],
                        internal_url='http://internal/host',
                        public_url='http://public/host',
    def test_get_public_url_has_trailing_slash(self):
        client = Client(None, None, None,
                        public_url='http://public/host')
 
        self.assertEquals(client.get_public_url(),
                          'http://public/host/')
 
        client = Client(None, None, None,