diff options
author | Karel Klic <kklic@redhat.com> | 2011-03-01 12:08:36 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2011-03-01 12:08:36 +0100 |
commit | 85f639b7fe277ba327e5013e5b101b4a67f14e1d (patch) | |
tree | 7caa3999e8c987e3ddbc26f4bfbbdc73defca73f /src/report-python/test_dd_create | |
parent | fb52104af74bbf6eeda394880666df40b4354aba (diff) | |
parent | 77468fcdd7cc05db52320c373a24a5490ff32f52 (diff) | |
download | abrt-85f639b7fe277ba327e5013e5b101b4a67f14e1d.tar.gz abrt-85f639b7fe277ba327e5013e5b101b4a67f14e1d.tar.xz abrt-85f639b7fe277ba327e5013e5b101b4a67f14e1d.zip |
merge changes from master
Diffstat (limited to 'src/report-python/test_dd_create')
-rwxr-xr-x | src/report-python/test_dd_create | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/report-python/test_dd_create b/src/report-python/test_dd_create new file mode 100755 index 00000000..4da29b11 --- /dev/null +++ b/src/report-python/test_dd_create @@ -0,0 +1,25 @@ +#!/usr/bin/python + +from report import * + +dd = dd_create("testdir") +print dd + +if dd: + print "dd is nonzero" +else: + print "dd is zero" + +print "name:", dd.name +print "closing" +dd.close() + +if dd: + print "dd is nonzero" +else: + print "dd is zero" + +# Should fail here +dd.name = "qwe" + +print "Done" |