~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Martin Pool
  • Date: 2005-09-18 00:57:26 UTC
  • mto: (1185.8.2) (974.1.91)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050918005726-9cbc228aeeaf4849
- run_bzr_captured also includes logged errors in 
  captured stderr
- simple test that exercises this

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
                           'added top.txt',],
279
279
                          results)
280
280
 
 
281
    def test_unknown_command(self):
 
282
        """Handling of unknown command."""
 
283
        out, err = self.run_bzr_captured(['fluffy-badger'],
 
284
                                         retcode=1)
 
285
        self.assertEquals(out, '')
 
286
        err.index('unknown command')
 
287
        
 
288
 
281
289
 
282
290
class OldTests(ExternalBase):
283
291
    """old tests moved from ./testbzr."""