mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 21:43:09 +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):
|
||||
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()
|
||||
yield proto.is_closed
|
||||
@ -117,7 +117,7 @@ class TestStreamingLogs(unittest.TestCase):
|
||||
self.assertEqual(len(messages), 2)
|
||||
self.assertEqual(messages[0]["action_type"], "test:cli:some-exciting-action")
|
||||
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("started", messages[0]["action_status"])
|
||||
self.assertEqual("succeeded", messages[1]["action_status"])
|
||||
|
Loading…
Reference in New Issue
Block a user