~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Robert Collins
  • Date: 2005-10-11 22:57:45 UTC
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051011225745-5c02a0cfc85b36d1
fixup the verbose-does-nothing for add - add a --quiet instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
454
454
                           'added top.txt',],
455
455
                          results)
456
456
 
 
457
    def test_add_quiet_is(self):
 
458
        """add -q does not print the names of added files."""
 
459
        b = Branch.initialize('.')
 
460
        self.build_tree(['top.txt', 'dir/', 'dir/sub.txt'])
 
461
        out = self.run_bzr_captured(['add', '-q'], retcode = 0)[0]
 
462
        # the ordering is not defined at the moment
 
463
        results = sorted(out.rstrip('\n').split('\n'))
 
464
        self.assertEquals([''], results)
 
465
 
457
466
    def test_unknown_command(self):
458
467
        """Handling of unknown command."""
459
468
        out, err = self.run_bzr_captured(['fluffy-badger'],