summaryrefslogtreecommitdiff
path: root/test/testutil.py
diff options
context:
space:
mode:
authorMark Roberts <wizzat@gmail.com>2014-04-08 11:02:57 -0700
committerMark Roberts <wizzat@gmail.com>2014-04-08 11:02:57 -0700
commitd7c5bbf7d4c59d9fe58e96c53340be17392cfa02 (patch)
tree74bdd7fa474c6c555cf0eeb332722d7fec06c093 /test/testutil.py
parentf0def436c6c9499aa384d8a3fe5319e0c8b9d7da (diff)
downloadkafka-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.py10
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')