~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
        # test that the stdin keyword to run_bzr is passed through to
142
142
        # _run_bzr_core as-is. We do this by overriding
143
143
        # _run_bzr_core in this class, and then calling run_bzr,
144
 
        # which is a convenience function for _run_bzr_core, so 
 
144
        # which is a convenience function for _run_bzr_core, so
145
145
        # should invoke it.
146
146
        self.run_bzr('foo bar', stdin='gam')
147
147
        self.assertEqual('gam', self.stdin)
208
208
        # test that the stdin keyword to _run_bzr_core is passed through to
209
209
        # apply_redirected as a StringIO. We do this by overriding
210
210
        # apply_redirected in this class, and then calling _run_bzr_core,
211
 
        # which calls apply_redirected. 
 
211
        # which calls apply_redirected.
212
212
        self.run_bzr(['foo', 'bar'], stdin='gam')
213
213
        self.assertEqual('gam', self.stdin.read())
214
214
        self.assertTrue(self.stdin is self.factory_stdin)
262
262
        result = self.run_bzr_subprocess(['--version'])
263
263
        result = self.run_bzr_subprocess('--version', retcode=None)
264
264
        self.assertContainsRe(result[0], 'is free software')
265
 
        self.assertRaises(AssertionError, self.run_bzr_subprocess, 
 
265
        self.assertRaises(AssertionError, self.run_bzr_subprocess,
266
266
                          '--versionn')
267
267
        result = self.run_bzr_subprocess('--versionn', retcode=3)
268
268
        result = self.run_bzr_subprocess('--versionn', retcode=None)
428
428
        process = self.start_bzr_subprocess(['--versionn'])
429
429
        self.assertRaises(self.failureException, self.finish_bzr_subprocess,
430
430
                          process)
431
 
        
 
431
 
432
432
    def test_start_and_stop_bzr_subprocess_send_signal(self):
433
433
        """finish_bzr_subprocess raises self.failureException if the retcode is
434
434
        not the expected one.