diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-06-08 17:27:42 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-06-08 17:27:42 +0200 |
commit | 0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e (patch) | |
tree | b1249b7b96c908931f2c29f48f016da8be450429 /libreport/src/report-python/test_dd_create | |
parent | 7ac32c68dea1fe0c6efa6ac9bb0e8ad8716d7f7d (diff) | |
download | abrt-0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e.tar.gz abrt-0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e.tar.xz abrt-0e74f780545b1aa8f6a5277b3cfdc9887c37ed5e.zip |
split libreport to a separate package
Diffstat (limited to 'libreport/src/report-python/test_dd_create')
-rwxr-xr-x | libreport/src/report-python/test_dd_create | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libreport/src/report-python/test_dd_create b/libreport/src/report-python/test_dd_create new file mode 100755 index 00000000..4da29b11 --- /dev/null +++ b/libreport/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" |