~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_test_server.py

(gz) Fix test failure on alpha by correcting format string for
 gc_chk_sha1_record (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
 
82
82
class TestTCPServerInAThread(tests.TestCase):
83
83
 
84
 
    scenarios = [
 
84
    scenarios = [ 
85
85
        (name, {'server_class': getattr(test_server, name)})
86
86
        for name in
87
87
        ('TestingTCPServer', 'TestingThreadingTCPServer')]
218
218
        # The connection wasn't served properly but the exception should have
219
219
        # been swallowed.
220
220
        server.pending_exception()
221
 
 
222
 
 
223
 
class TestTestingSmartServer(tests.TestCase):
224
 
 
225
 
    def test_sets_client_timeout(self):
226
 
        server = test_server.TestingSmartServer(('localhost', 0), None, None,
227
 
            root_client_path='/no-such-client/path')
228
 
        self.assertEqual(test_server._DEFAULT_TESTING_CLIENT_TIMEOUT,
229
 
                         server._client_timeout)
230
 
        sock = socket.socket()
231
 
        h = server._make_handler(sock)
232
 
        self.assertEqual(test_server._DEFAULT_TESTING_CLIENT_TIMEOUT,
233
 
                         h._client_timeout)