aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_rparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_rparse.py')
-rw-r--r--test/test_rparse.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_rparse.py b/test/test_rparse.py
index dadf5bc1..634eb6a7 100644
--- a/test/test_rparse.py
+++ b/test/test_rparse.py
@@ -391,6 +391,20 @@ class TestWriteValues:
rparse.write_values(s, tst[:], [(1, "pause", 0)], blocksize=i)
assert s.getvalue() == "".join(tst)
+ def test_write_values_after(self):
+ s = cStringIO.StringIO()
+ r = rparse.parse_response({}, "400:da")
+ r.serve(s, None)
+
+ s = cStringIO.StringIO()
+ r = rparse.parse_response({}, "400:p0,a")
+ r.serve(s, None)
+
+ s = cStringIO.StringIO()
+ r = rparse.parse_response({}, "400:ia,'xx'")
+ r.serve(s, None)
+ assert s.getvalue().endswith('xx')
+
def test_ready_actions():
x = [(0, 5)]