~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_help.py

  • Committer: ghigo
  • Date: 2007-02-07 21:08:04 UTC
  • mto: (1739.1.7 integration)
  • mto: This revision was merged to the branch mainline in revision 2443.
  • Revision ID: ghigo@venice-20070207210804-r551d0lozrp20uex
On the basis of Robert Collins and John Arbash Meinel
- removed some protocol ( http[s]+pycurl:// and http[s]+urllib://, 
bzr+http:// and readonly+ )
- _help_on_trasport( ) now supports the missing of the modifiers
- add a blackbox test case
- little PEP8 cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        self.assertContainsRe(out, 'ancestor:')
52
52
        self.assertContainsRe(out, 'branch:')
53
53
 
 
54
    def test_help_urlspec(self):
 
55
        """Smoke test for 'bzr help urlspec'"""
 
56
        out, err = self.run_bzr('help', 'urlspec')
 
57
        self.assertContainsRe(out, 'aftp://')
 
58
        self.assertContainsRe(out, 'bzr://')
 
59
        self.assertContainsRe(out, 'bzr\+ssh://')
 
60
        self.assertContainsRe(out, 'file://')
 
61
        self.assertContainsRe(out, 'ftp://')
 
62
        self.assertContainsRe(out, 'http://')
 
63
        self.assertContainsRe(out, 'https://')
 
64
        self.assertContainsRe(out, 'sftp://')
 
65
 
54
66
    def test_help_commands(self):
55
67
        dash_help  = self.runbzr('--help commands')[0]
56
68
        commands   = self.runbzr('help commands')[0]