/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_version_info.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-21 16:48:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2028.
  • Revision ID: john@arbash-meinel.com-20060921164822-86cc68e95e20b5d7
small cleanup, remove unused imports

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Blackbox tests for version_info"""
18
18
 
19
 
import imp
20
19
import os
21
 
import sys
22
20
 
23
21
from bzrlib.tests import TestCaseWithTransport
24
22
 
91
89
        """Test that bzr defaults to the local working directory"""
92
90
        self.create_branch()
93
91
 
 
92
        txt1 = self.run_bzr('version-info', 'branch')[0]
 
93
 
94
94
        os.chdir('branch')
95
 
        txt = self.run_bzr('version-info')[0]
 
95
        txt2 = self.run_bzr('version-info')[0]
 
96
        self.assertEqual(txt1, txt2)
96
97
 
97
98
    def test_rio(self):
98
99
        """Test that we can pass --format=rio"""
110
111
 
111
112
        txt = self.run_bzr('version-info', '--format', 'python', 'branch')[0]
112
113
 
113
 
        self.assertContainsRe(txt, 'revisions = {')
 
114
        self.assertContainsRe(txt, 'version_info = {')