mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 01:38:55 +00:00
Test random bytes.
This commit is contained in:
parent
e090891935
commit
567c0f019e
@ -109,7 +109,7 @@ class TestStreamingLogs(unittest.TestCase):
|
|||||||
def do_a_thing(arguments):
|
def do_a_thing(arguments):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
do_a_thing(arguments=[u"hello", b"good-day", 123, {"a": 35}, [None]])
|
do_a_thing(arguments=[u"hello", b"good-\xff-day", 123, {"a": 35}, [None]])
|
||||||
|
|
||||||
proto.transport.loseConnection()
|
proto.transport.loseConnection()
|
||||||
yield proto.is_closed
|
yield proto.is_closed
|
||||||
@ -117,7 +117,7 @@ class TestStreamingLogs(unittest.TestCase):
|
|||||||
self.assertEqual(len(messages), 2)
|
self.assertEqual(len(messages), 2)
|
||||||
self.assertEqual(messages[0]["action_type"], "test:cli:some-exciting-action")
|
self.assertEqual(messages[0]["action_type"], "test:cli:some-exciting-action")
|
||||||
self.assertEqual(messages[0]["arguments"],
|
self.assertEqual(messages[0]["arguments"],
|
||||||
["hello", "good-day", 123, {"a": 35}, [None]])
|
["hello", "good-\\xff-day", 123, {"a": 35}, [None]])
|
||||||
self.assertEqual(messages[1]["action_type"], "test:cli:some-exciting-action")
|
self.assertEqual(messages[1]["action_type"], "test:cli:some-exciting-action")
|
||||||
self.assertEqual("started", messages[0]["action_status"])
|
self.assertEqual("started", messages[0]["action_status"])
|
||||||
self.assertEqual("succeeded", messages[1]["action_status"])
|
self.assertEqual("succeeded", messages[1]["action_status"])
|
||||||
|
Loading…
Reference in New Issue
Block a user