The following show alternative styles of adding a late attribute. They produce the same definition.
Code Block |
---|
| defs = Defs()
suite = defs.add_suite('s1')
late = |
|
...
...
late.submitted( 20,10 ) # hour, |
|
...
...
late.active( 2, 10 ) # hour, |
|
...
...
late.complete( 3, 10, True) # hour, |
|
...
...
relative
suite.add_task('t1').add_late(late) |
|
Code Block |
---|
| defs = Defs(
Suite('s1',
Task('t1',
Late(submitted='20:10',
active='02:10',
complete='+03:10')))) |
|
Code Block |
---|
| defs = Defs() + (Suite('s1') + Task('t1'))
defs.s1.t1 += Late(submitted='20:10',active='02:10',complete='+03:10') |
|