summaryrefslogtreecommitdiffstats
path: root/src/report-python/test_problem_data
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-04-23 17:21:17 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-04-23 17:21:17 +0200
commit042d62126a0ca8b6b9d2fb4d417f07691be90536 (patch)
tree9e43a823767d875bb35f3deb6f60df49bbd26f33 /src/report-python/test_problem_data
parentd3da30c4726a193101ee9c17a71c23cf32fa63ca (diff)
downloadabrt-042d62126a0ca8b6b9d2fb4d417f07691be90536.tar.gz
abrt-042d62126a0ca8b6b9d2fb4d417f07691be90536.tar.xz
abrt-042d62126a0ca8b6b9d2fb4d417f07691be90536.zip
mass replace of crash_data with problem_data
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/report-python/test_problem_data')
-rw-r--r--src/report-python/test_problem_data21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/report-python/test_problem_data b/src/report-python/test_problem_data
new file mode 100644
index 00000000..16f1f9ae
--- /dev/null
+++ b/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"