adding test file
This commit is contained in:
parent
7d2a370104
commit
d0ebd37c79
1 changed files with 23 additions and 0 deletions
23
test.py
Executable file
23
test.py
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/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'
|
||||||
|
j.list_jobs()
|
||||||
|
|
||||||
|
print 'Open job'
|
||||||
|
j.open(uuid="amd1")
|
||||||
|
|
||||||
|
print 'what_work()'
|
||||||
|
j.what_work()
|
||||||
|
|
||||||
|
print 'what_time()'
|
||||||
|
j.what_time()
|
Loading…
Reference in a new issue