~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Martin Pool
  • Date: 2006-02-22 04:37:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1569.
  • Revision ID: mbp@sourcefrog.net-20060222043733-6fc1f11e6b19ba79
Fix test_progress_note for non-80-character terminals

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        result = pb.note('t')
62
62
        self.assertEqual(None, result)
63
63
        self.assertEqual("t\n", stdout.getvalue())
64
 
        self.assertEqual("\r                                                                               \r", stderr.getvalue())
 
64
        # the exact contents will depend on the terminal width and we don't
 
65
        # care about that right now - but you're probably running it on at
 
66
        # least a 10-character wide terminal :)
 
67
        self.assertContainsRe(r'^\r {10,}\r$', stderr.getvalue())