summaryrefslogtreecommitdiffstats
path: root/libreport/src/report-python/test_problem_data
diff options
context:
space:
mode:
Diffstat (limited to 'libreport/src/report-python/test_problem_data')
-rw-r--r--libreport/src/report-python/test_problem_data21
1 files changed, 21 insertions, 0 deletions
diff --git a/libreport/src/report-python/test_problem_data b/libreport/src/report-python/test_problem_data
new file mode 100644
index 00000000..16f1f9ae
--- /dev/null
+++ b/libreport/src/report-python/test_problem_data
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+
+from report import *
+
+cd = problem_data()
+cd.add("foo", "bar")
+
+dd = cd.create_dump_dir()
+
+if dd:
+ print "dd is nonzero"
+else:
+ print "dd is zero"
+
+print "closing"
+dd.close()
+
+if dd:
+ print "dd is nonzero"
+else:
+ print "dd is zero"