summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Greenan <kmg@box.com>2016-04-21 06:52:23 -0700
committerKevin Greenan <kmg@box.com>2016-04-21 06:52:23 -0700
commitccc8c17e3cc6d467bdec4fdd9e7e6b7f565d87a7 (patch)
tree6caffd09d865698e0f3c0f4121c08955c1c65ed4
parentf44df21404e42a03020515323186bdf0d393af4b (diff)
downloadpyeclib-unittests-error-with-test_rs.tar.gz
Fix the tests to handle corrupted fragments.unittests-error-with-test_rs
-rw-r--r--test/test_pyeclib_api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_pyeclib_api.py b/test/test_pyeclib_api.py
index 78485e0..cd304b7 100644
--- a/test/test_pyeclib_api.py
+++ b/test/test_pyeclib_api.py
@@ -30,6 +30,7 @@ from pyeclib.ec_iface import ECBackendNotSupported
from pyeclib.ec_iface import ECDriver
from pyeclib.ec_iface import ECDriverError
from pyeclib.ec_iface import ECInsufficientFragments
+from pyeclib.ec_iface import ECInvalidFragmentMetadata
from pyeclib.ec_iface import PyECLib_EC_Types
from pyeclib.ec_iface import ALL_EC_TYPES
from pyeclib.ec_iface import VALID_EC_TYPES
@@ -537,7 +538,7 @@ class TestPyECLibDriver(unittest.TestCase):
fragments[i] = corrupted_fragment
i += 1
- self.assertRaises(ECInsufficientFragments,
+ self.assertRaises(ECInvalidFragmentMetadata,
pyeclib_driver.decode,
fragments[:], force_metadata_checks=True)