diff options
author | Mark Roberts <wizzat@gmail.com> | 2014-04-08 11:02:57 -0700 |
---|---|---|
committer | Mark Roberts <wizzat@gmail.com> | 2014-04-08 11:02:57 -0700 |
commit | d7c5bbf7d4c59d9fe58e96c53340be17392cfa02 (patch) | |
tree | 74bdd7fa474c6c555cf0eeb332722d7fec06c093 /test/testutil.py | |
parent | f0def436c6c9499aa384d8a3fe5319e0c8b9d7da (diff) | |
download | kafka-python-d7c5bbf7d4c59d9fe58e96c53340be17392cfa02.tar.gz |
Reinstate test_integrate, make test_protocol more explicit, create testutil
Diffstat (limited to 'test/testutil.py')
-rw-r--r-- | test/testutil.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/testutil.py b/test/testutil.py new file mode 100644 index 0000000..7d57ff6 --- /dev/null +++ b/test/testutil.py @@ -0,0 +1,10 @@ +import os +import random +import string + +def random_string(l): + s = "".join(random.choice(string.letters) for i in xrange(l)) + return s + +def skip_integration(): + return os.environ.get('SKIP_INTEGRATION') |