aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 78892b5d..d2cb85dc 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -356,6 +356,16 @@ class uSerialize(libpry.AutoTree):
assert len(l) == 1
assert l[0] == f
+ def test_error(self):
+ sio = StringIO()
+ sio.write("bogus")
+ sio.seek(0)
+ r = flow.FlowReader(sio)
+ libpry.raises(flow.FlowReadError, list, r.stream())
+
+ f = flow.FlowReadError("foo")
+ assert f.strerror == "foo"
+
class uFlowMaster(libpry.AutoTree):
def test_all(self):