~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-22 09:03:35 UTC
  • mfrom: (4449.3.47 387717-progress-bar-tty)
  • Revision ID: pqm@pqm.ubuntu.com-20090722090335-m1okio1ev9bwytui
(mbp) various UIFactory cleanups including bug 387717

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2008 Canonical Ltd
2
 
#   Authors: Robert Collins <robert.collins@canonical.com>
 
1
# Copyright (C) 2005, 2006, 2008, 2009 Canonical Ltd
3
2
#
4
3
# This program is free software; you can redistribute it and/or modify
5
4
# it under the terms of the GNU General Public License as published by
1561
1560
"""))
1562
1561
        entered_password = 'typed-by-hand'
1563
1562
        stdout = tests.StringIOWrapper()
 
1563
        stderr = tests.StringIOWrapper()
1564
1564
        ui.ui_factory = tests.TestUIFactory(stdin=entered_password + '\n',
1565
 
                                            stdout=stdout)
 
1565
                                            stdout=stdout, stderr=stderr)
1566
1566
 
1567
1567
        # Since the password defined in the authentication config is ignored,
1568
1568
        # the user is prompted
1582
1582
"""))
1583
1583
        entered_password = 'typed-by-hand'
1584
1584
        stdout = tests.StringIOWrapper()
 
1585
        stderr = tests.StringIOWrapper()
1585
1586
        ui.ui_factory = tests.TestUIFactory(stdin=entered_password + '\n',
1586
 
                                            stdout=stdout)
 
1587
                                            stdout=stdout,
 
1588
                                            stderr=stderr)
1587
1589
 
1588
1590
        # Since the password defined in the authentication config is ignored,
1589
1591
        # the user is prompted