summaryrefslogtreecommitdiffstats
path: root/src/report-python/test_dd_create
blob: 4da29b1128c627d7539b3e8f03c862411c5fc724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"