~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2006-05-05 04:00:11 UTC
  • mto: (1697.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1701.
  • Revision ID: robertc@robertcollins.net-20060505040011-da8649051797224e
Review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
    def test_stdin(self):
85
85
        # test that the stdin keyword to run_bzr is passed through to
86
 
        # run_bzr_captured as-is.
 
86
        # run_bzr_captured as-is. We do this by overriding
 
87
        # run_bzr_captured in this class, and then calling run_bzr,
 
88
        # which is a convenience function for run_bzr_captured, so 
 
89
        # should invoke it.
87
90
        self.run_bzr('foo', 'bar', stdin='gam')
88
91
        self.assertEqual('gam', self.stdin)
89
92
        self.run_bzr('foo', 'bar', stdin='zippy')
100
103
 
101
104
    def test_stdin(self):
102
105
        # test that the stdin keyword to run_bzr_captured is passed through to
103
 
        # apply_redirected as a StringIO
 
106
        # apply_redirected as a StringIO. We do this by overriding
 
107
        # apply_redirected in this class, and then calling run_bzr_captured,
 
108
        # which calls apply_redirected. 
104
109
        self.run_bzr_captured(['foo', 'bar'], stdin='gam')
105
110
        self.assertEqual('gam', self.stdin.read())
106
111
        self.assertTrue(self.stdin is self.factory_stdin)