/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Tests for the brzlib ui
 
17
"""Tests for the breezy ui
18
18
"""
19
19
 
20
20
import time
23
23
 
24
24
from testtools.matchers import *
25
25
 
26
 
from brzlib import (
 
26
from breezy import (
27
27
    config,
28
28
    remote,
29
29
    tests,
30
30
    ui as _mod_ui,
31
31
    )
32
 
from brzlib.tests import (
 
32
from breezy.tests import (
33
33
    fixtures,
34
34
    )
35
 
from brzlib.ui import text as _mod_ui_text
36
 
from brzlib.tests.testui import (
 
35
from breezy.ui import text as _mod_ui_text
 
36
from breezy.tests.testui import (
37
37
    ProgressRecordingUIFactory,
38
38
    )
39
39
 
76
76
        # turns into reading a regular boolean
77
77
        ui = self.make_test_ui_factory('n\n')
78
78
        self.assertEqual(ui.confirm_action(u'Should %(thing)s pass?',
79
 
            'brzlib.tests.test_ui.confirmation',
 
79
            'breezy.tests.test_ui.confirmation',
80
80
            {'thing': 'this'},),
81
81
            False)
82
82
 
298
298
            _mod_ui_text.NullProgressView)
299
299
 
300
300
    def test_text_ui_show_user_warning(self):
301
 
        from brzlib.repofmt.groupcompress_repo import RepositoryFormat2a
302
 
        from brzlib.repofmt.knitpack_repo import RepositoryFormatKnitPack5
 
301
        from breezy.repofmt.groupcompress_repo import RepositoryFormat2a
 
302
        from breezy.repofmt.knitpack_repo import RepositoryFormatKnitPack5
303
303
        err = StringIO()
304
304
        out = StringIO()
305
305
        ui = tests.TextUIFactory(stdin=None, stdout=out, stderr=err)
509
509
            self.assertEqual(
510
510
                _mod_ui.ConfirmationUserInterfacePolicy(base_ui, answer, {})
511
511
                .confirm_action("Do something?",
512
 
                    "brzlib.tests.do_something", {}),
 
512
                    "breezy.tests.do_something", {}),
513
513
                answer)
514
514
 
515
515
    def test_confirm_action_specific(self):