/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2009-09-17 11:54:41 UTC
  • mto: This revision was merged to the branch mainline in revision 4700.
  • Revision ID: robertc@robertcollins.net-20090917115441-2ug57z6eyrnb6zim
Add stronger test isolation by interception BzrDir.open and checking the thing being opened is known to the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        self.run_bzr('revert')
113
113
        os.chdir('..')
114
114
 
115
 
    def test_main_version(self):
116
 
        """Check output from version command and master option is reasonable"""
117
 
        # output is intentionally passed through to stdout so that we
118
 
        # can see the version being tested
119
 
        output = self.run_bzr('version')[0]
120
 
        self.log('bzr version output:')
121
 
        self.log(output)
122
 
        self.assert_(output.startswith('Bazaar (bzr) '))
123
 
        self.assertNotEqual(output.index('Canonical'), -1)
124
 
        # make sure --version is consistent
125
 
        tmp_output = self.run_bzr('--version')[0]
126
 
        self.assertEquals(output, tmp_output)
127
 
 
128
115
    def example_branch(test):
129
116
        test.run_bzr('init')
130
117
        file('hello', 'wt').write('foo')