/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 bzrlib/tests/test_errors.py

  • Committer: Martin
  • Date: 2010-05-16 15:18:43 UTC
  • mfrom: (5235 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5239.
  • Revision ID: gzlist@googlemail.com-20100516151843-lu53u7caehm3ie3i
Merge bzr.dev to resolve conflicts in NEWS and _chk_map_pyx

Show diffs side-by-side

added added

removed removed

Lines of Context:
670
670
 
671
671
 
672
672
class ErrorWithNoFormat(errors.BzrError):
673
 
    """This class has a docstring but no format string."""
 
673
    __doc__ = """This class has a docstring but no format string."""
674
674
 
675
675
 
676
676
class TestErrorFormatting(TestCase):
713
713
        e = errors.FileTimestampUnavailable("/path/foo")
714
714
        self.assertEquals("The filestamp for /path/foo is not available.",
715
715
            str(e))
 
716
            
 
717
    def test_transform_rename_failed(self):
 
718
        e = errors.TransformRenameFailed(u"from", u"to", "readonly file", 2)
 
719
        self.assertEquals(
 
720
            u"Failed to rename from to to: readonly file",
 
721
            str(e))