From dd78a0af258eca9bd19b81db4513315bbcd5f0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sun, 16 Dec 2018 21:42:54 +0100 Subject: [PATCH] Add test cases involving random data --- tests.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests.py b/tests.py index abcaa7a..50babce 100644 --- a/tests.py +++ b/tests.py @@ -2,6 +2,7 @@ from os import stat from os.path import exists, dirname, realpath, join from stat import S_ISFIFO +from secrets import token_urlsafe import pytest @@ -32,11 +33,14 @@ def test_pipes_isfifo(pipe_io): @pytest.mark.parametrize( 'test_data', [ - 'cats', - 'cheese', + 'Cats and cheese', 'You ever wonder why we are here?', 'Lorem ipsum dolor sit amet', - 'You always have a plan, Dutch!' + 'You always have a plan, Dutch!', + token_urlsafe(32), + token_urlsafe(32), + token_urlsafe(32), + token_urlsafe(32) ] ) def test_echo_server(pipe_io, test_data):