From 042d62126a0ca8b6b9d2fb4d417f07691be90536 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 23 Apr 2011 17:21:17 +0200 Subject: mass replace of crash_data with problem_data Signed-off-by: Denys Vlasenko --- src/report-python/test_problem_data | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/report-python/test_problem_data (limited to 'src/report-python/test_problem_data') 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" -- cgit