Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/testutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils.py')
-rw-r--r--tests/testutils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/testutils.py b/tests/testutils.py
index e81b22c..2f3e7ff 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -8,6 +8,14 @@ def tmpData(data):
os.close(fd)
return fn
+def blit(data, path=None):
+ if not path: return tmpData(data)
+ fp = open(path, 'w')
+ fp.write(data)
+ fp.close()
+ return path
+
+
# Search result set handlers
def expect(r, count=None):
if count: assert r[1] == count