~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-26 21:11:03 UTC
  • mfrom: (2447.1.7 bundle_empty_properties)
  • Revision ID: pqm@pqm.ubuntu.com-20070426211103-h84prqh7a4ad3ez2
(John Arbash Meinel) Fix bug #109613 by teaching Bundle how to properly read/write revision properties with no value.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    ProxyDigestAuthServer,
59
59
    ProxyServer,
60
60
    SingleRangeRequestHandler,
61
 
    SingleOnlyRangeRequestHandler,
62
61
    TestCaseWithRedirectedWebserver,
63
62
    TestCaseWithTwoWebservers,
64
63
    TestCaseWithWebserver,
694
693
    """Tests single range requests accepting server for pycurl implementation"""
695
694
 
696
695
 
697
 
class TestSingleOnlyRangeRequestServer(TestRangeRequestServer):
698
 
    """Test readv against a server which only accept single range requests"""
699
 
 
700
 
    def create_transport_readonly_server(self):
701
 
        return HttpServer(SingleOnlyRangeRequestHandler)
702
 
 
703
 
 
704
 
class TestSingleOnlyRangeRequestServer_urllib(TestSingleOnlyRangeRequestServer,
705
 
                                              TestCaseWithWebserver):
706
 
    """Tests single range requests accepting server for urllib implementation"""
707
 
 
708
 
    _transport = HttpTransport_urllib
709
 
 
710
 
 
711
 
class TestSingleOnlyRangeRequestServer_pycurl(TestWithTransport_pycurl,
712
 
                                              TestSingleOnlyRangeRequestServer,
713
 
                                              TestCaseWithWebserver):
714
 
    """Tests single range requests accepting server for pycurl implementation"""
715
 
 
716
 
 
717
696
class TestNoRangeRequestServer(TestRangeRequestServer):
718
697
    """Test readv against a server which do not accept range requests"""
719
698
 
1176
1155
        self.build_tree_contents([('a', 'contents of a\n'),
1177
1156
                                  ('b', 'contents of b\n'),])
1178
1157
        self.old_factory = ui.ui_factory
1179
 
        # The following has the unfortunate side-effect of hiding any ouput
1180
 
        # during the tests (including pdb prompts). Feel free to comment them
1181
 
        # for debugging purposes but leave them in place, there are needed to
1182
 
        # run the tests without any console
1183
1158
        self.old_stdout = sys.stdout
1184
1159
        sys.stdout = StringIOWrapper()
1185
1160
        self.addCleanup(self.restoreUIFactory)