Line | |
---|
1 | """ |
---|
2 | Ported to Python 3. |
---|
3 | """ |
---|
4 | |
---|
5 | from ..common import SyncTestCase |
---|
6 | from allmydata.mutable.common import NeedMoreDataError, UncoordinatedWriteError |
---|
7 | |
---|
8 | |
---|
9 | class 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.