~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_script.py

  • Committer: Martin Pool
  • Date: 2010-09-13 04:44:56 UTC
  • mto: (5416.1.8 ui-factory)
  • mto: This revision was merged to the branch mainline in revision 5422.
  • Revision ID: mbp@sourcefrog.net-20100913044456-b968egdoz1jqihlj
Additional script tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
470
470
            # 'bzrlib.tests.test_script.confirm',
471
471
            # {}
472
472
            ):
473
 
            self.outf.write('yes\n')
 
473
            self.outf.write('Do it!\n')
474
474
        else:
475
 
            print 'no'
 
475
            print 'ok, no'
476
476
 
477
477
 
478
478
class TestUserInteraction(script.TestCaseWithMemoryTransportAndScript):
490
490
            $ bzr test-confirm
491
491
            2>Really do it? [y/n]: 
492
492
            <yes
493
 
            yes
 
493
            Do it!
 
494
            $ bzr test-confirm
 
495
            2>Really do it? [y/n]: 
 
496
            <no
 
497
            ok, no
494
498
            """)
495
499