~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-02-01 03:46:12 UTC
  • mfrom: (3209.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080201034612-xl88s8i45res3pm2
Make pull --quiet more quiet (James Westby)

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
        revision_id = 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.assertEqual(tree_b.last_revision(), revision_id)
 
320
        self.build_tree(['tree_a/moo'])
 
321
        tree_a.add('moo')
 
322
        revision_id = tree_a.commit('quack')
 
323
        out, err = self.run_bzr('pull --quiet -d tree_b')
 
324
        self.assertEqual(out, '')
 
325
        self.assertEqual(err, '')
 
326
        self.assertEqual(tree_b.last_revision(), revision_id)