~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-08 06:17:41 UTC
  • mfrom: (4797.33.16 apport)
  • Revision ID: pqm@pqm.ubuntu.com-20100408061741-m7vl6z97vu33riv7
(robertc) Make sure ExecutablePath and InterpreterPath are set in
        Apport. (Martin Pool, James Westby, lp:528114)

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        out, err = self.run_bzr('conflicts --text')
71
71
        self.assertEqual(['my_other_file', 'myfile'], out.splitlines())
72
72
 
73
 
    def test_conflicts_directory(self):
74
 
        """Test --directory option"""
75
 
        out, err = self.run_bzr('conflicts --directory a', working_dir='.')
76
 
        self.assertEqual(3, len(out.splitlines()))
77
 
        self.assertEqual('', err)
78
 
 
79
73
 
80
74
class TestResolve(TestConflictsBase):
81
75
 
119
113
        self.build_tree_contents([('tree/file', 'a\n')])
120
114
        note = self.run_bzr('resolve', working_dir='tree')[1]
121
115
        self.assertContainsRe(note, 'All conflicts resolved.')
122
 
 
123
 
    def test_resolve_all_directory(self):
124
 
        """Test --directory option"""
125
 
        out, err = self.run_bzr('resolve --all -d a', working_dir='.')
126
 
        self.assertEqual('', err)
127
 
        out, err = self.run_bzr('conflicts')
128
 
        self.assertEqual(0, len(out.splitlines()))