~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2011-09-25 03:13:49 UTC
  • Revision ID: aaron@aaronbentley.com-20110925031349-a3n39pq16ih54fwn
Rename 'branches' to list-branches, keep 'branches' as alias if not built in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        self.assertIs(False, os.path.exists('checkout2'))
122
122
        self.assertIs(False, os.path.exists('source2'))
123
123
 
124
 
    def test_branches(self):
 
124
    def test_list_branches(self):
125
125
        self.run_bzr('init source')
126
126
        self.run_bzr('init source/subsource')
127
127
        self.run_bzr('checkout --lightweight source checkout')
128
128
        self.run_bzr('init checkout/subcheckout')
129
129
        self.run_bzr('init checkout/.bzr/subcheckout')
130
 
        out = self.run_bzr('branches')[0]
 
130
        out = self.run_bzr('list-branches')[0]
131
131
        lines = out.split('\n')
132
132
        self.assertIs(True, 'source' in lines)
133
133
        self.assertIs(True, 'source/subsource' in lines)