indenture/test.py

38 lines
542 B
Python
Raw Permalink Normal View History

2012-08-17 00:43:40 +00:00
#!/usr/bin/env python
# Fire up virtualenv
activate_this = "venv/bin/activate_this.py"
execfile(activate_this, dict(__file__=activate_this))
import indenture
print 'Create new instance'
j = indenture.Job()
print 'List jobs'
indenture.list_jobs()
2012-08-17 00:43:40 +00:00
print 'Open job'
j.open(uuid="amd1")
print 'what_work()'
print j.what_work()
2012-08-17 00:43:40 +00:00
print 'what_time()'
print j.what_time()
print "add 3600 seconds"
j.due = j.due + 3600
print j.what_time()
print "saving"
j.save()
print "re-open"
j.open(uuid="amd1")
print "what_time()"
print j.what_time()