source: trunk/src/allmydata/test/mutable/test_exceptions.py

Last change on this file was 1cfe843d, checked in by Alexandre Detiste <alexandre.detiste@…>, at 2024-02-22T23:40:25Z

more python2 removal

  • Property mode set to 100644
File size: 521 bytes
Line 
1"""
2Ported to Python 3.
3"""
4
5from ..common import SyncTestCase
6from allmydata.mutable.common import NeedMoreDataError, UncoordinatedWriteError
7
8
9class Exceptions(SyncTestCase):
10    def test_repr(self):
11        nmde = NeedMoreDataError(100, 50, 100)
12        self.assertTrue("NeedMoreDataError" in repr(nmde), msg=repr(nmde))
13        self.assertTrue("NeedMoreDataError" in repr(nmde), msg=repr(nmde))
14        ucwe = UncoordinatedWriteError()
15        self.assertTrue("UncoordinatedWriteError" in repr(ucwe), msg=repr(ucwe))
Note: See TracBrowser for help on using the repository browser.