~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Patch Queue Manager
  • Date: 2012-09-17 09:38:30 UTC
  • mfrom: (6559.1.1 extract-auth-obsolete)
  • Revision ID: pqm@pqm.ubuntu.com-20120917093830-1o8asgkr9jd62yyd
(vila) Remove obsolete (and not used anymore) code and its associated tests
 (covered by other tests in test_http.py). (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
384
384
    _transport = property(_get_pycurl_maybe)
385
385
 
386
386
 
387
 
class TestHttpUrls(tests.TestCase):
388
 
 
389
 
    # TODO: This should be moved to authorization tests once they
390
 
    # are written.
391
 
 
392
 
    def test_url_parsing(self):
393
 
        f = FakeManager()
394
 
        url = http.extract_auth('http://example.com', f)
395
 
        self.assertEqual('http://example.com', url)
396
 
        self.assertEqual(0, len(f.credentials))
397
 
        url = http.extract_auth(
398
 
            'http://user:pass@example.com/bzr/bzr.dev', f)
399
 
        self.assertEqual('http://example.com/bzr/bzr.dev', url)
400
 
        self.assertEqual(1, len(f.credentials))
401
 
        self.assertEqual([None, 'example.com', 'user', 'pass'],
402
 
                         f.credentials[0])
403
 
 
404
 
 
405
387
class TestHttpTransportUrls(tests.TestCase):
406
388
    """Test the http urls."""
407
389