~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Lalo Martins
  • Date: 2005-09-09 11:37:44 UTC
  • mto: (1185.1.22)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: lalo@exoweb.net-20050909113744-22f870db25a9e5f5
getting rid of everything that calls the Branch constructor directly

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
    def test_ignore_patterns(self):
93
93
        from bzrlib.branch import Branch
94
94
        
95
 
        b = Branch('.', init=True)
 
95
        b = Branch.initialize('.')
96
96
        self.assertEquals(list(b.unknowns()), [])
97
97
 
98
98
        file('foo.tmp', 'wt').write('tmp files are ignored')
150
150
    def skipped_test_mv_modes(self):
151
151
        """Test two modes of operation for mv"""
152
152
        from bzrlib.branch import Branch
153
 
        b = Branch('.', init=True)
 
153
        b = Branch.initialize('.')
154
154
        self.build_tree(['a', 'c', 'subdir/'])
155
155
        self.run_bzr('mv', 'a', 'b')
156
156
        self.run_bzr('mv', 'b', 'subdir')
214
214
        self.runbzr('merge ../b')
215
215
        self.check_file_contents('goodbye', 'quux')
216
216
        # Merging a branch pulls its revision into the tree
217
 
        a = Branch('.')
218
 
        b = Branch('../b')
 
217
        a = Branch.open('.')
 
218
        b = Branch.open('../b')
219
219
        a.get_revision_xml(b.last_patch())
220
220
 
221
221
        self.log('pending merges: %s', a.pending_merges())
225
225
 
226
226
    def test_add_reports(self):
227
227
        """add command prints the names of added files."""
228
 
        b = Branch('.', init=True)
 
228
        b = Branch.initialize('.')
229
229
        self.build_tree(['top.txt', 'dir/', 'dir/sub.txt'])
230
230
 
231
231
        from cStringIO import StringIO