mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-28 08:48:53 +00:00
10 lines
414 B
Python
10 lines
414 B
Python
from twisted.trial import unittest
|
|
from allmydata.mutable.common import NeedMoreDataError, UncoordinatedWriteError
|
|
|
|
class Exceptions(unittest.TestCase):
|
|
def test_repr(self):
|
|
nmde = NeedMoreDataError(100, 50, 100)
|
|
self.failUnless("NeedMoreDataError" in repr(nmde), repr(nmde))
|
|
ucwe = UncoordinatedWriteError()
|
|
self.failUnless("UncoordinatedWriteError" in repr(ucwe), repr(ucwe))
|