~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: James Westby
  • Date: 2008-01-28 21:46:16 UTC
  • mto: (3209.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3210.
  • Revision ID: jw+debian@jameswestby.net-20080128214616-9l1gs91fgnk41wex
Make pull --quiet more quiet. Fixes #185907.

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
        self.assertContainsRe(out, 'bar')
306
306
        self.assertNotContainsRe(out, 'added:')
307
307
        self.assertNotContainsRe(out, 'foo')
 
308
 
 
309
    def test_pull_quiet(self):
 
310
        """Check that bzr pull --quiet does not print anything"""
 
311
        tree_a = self.make_branch_and_tree('tree_a')
 
312
        self.build_tree(['tree_a/foo'])
 
313
        tree_a.add('foo')
 
314
        tree_a.commit('bar')
 
315
        tree_b = tree_a.bzrdir.sprout('tree_b').open_workingtree()
 
316
        out, err = self.run_bzr('pull --quiet -d tree_b')
 
317
        self.assertEqual(out, '')
 
318
        self.assertEqual(err, '')
 
319
        self.build_tree(['tree_a/moo'])
 
320
        tree_a.add('moo')
 
321
        tree_a.commit('quack')
 
322
        out, err = self.run_bzr('pull --quiet -d tree_b')
 
323
        self.assertEqual(out, '')
 
324
        self.assertEqual(err, '')