~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

- more refactoring of and tests for option parsing

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
        self.log(tmp_output)
219
219
        self.assertEquals(output, tmp_output)
220
220
 
221
 
    def test_option_help(self):
222
 
        """Options have help strings."""
223
 
        out, err = self.run_bzr_captured(['commit', '--help'])
224
 
        self.assertContainsRe(out, r'--file.*file containing commit message')
225
 
 
226
 
    def test_option_help_global(self):
227
 
        """Global options have help strings."""
228
 
        out, err = self.run_bzr_captured(['help', 'status'])
229
 
        self.assertContainsRe(out, r'--show-ids.*show internal object')
230
 
 
231
221
    def example_branch(test):
232
222
        test.runbzr('init')
233
223
        file('hello', 'wt').write('foo')
810
800
        self.run_bzr('branch', url, 'to')
811
801
        branch = Branch.open('to')
812
802
        self.assertEqual(1, len(branch.revision_history()))
 
803
 
 
804