>>> os.chdir(dir.dir)
>>> dir.get_bug("a").assigned is None
True
- >>> execute(("a",))
+ >>> execute(["a"])
>>> dir.get_bug("a").assigned == names.creator()
True
- >>> execute(("a", "someone"))
+ >>> execute(["a", "someone"])
>>> dir.get_bug("a").assigned
u'someone'
- >>> execute(("a","none"))
+ >>> execute(["a","none"])
>>> dir.get_bug("a").assigned is None
True
>>> tests.clean_up()
>>> os.chdir(dir.dir)
>>> dir.get_bug("a").status
u'open'
- >>> execute(("a",))
+ >>> execute(["a"])
>>> dir.get_bug("a").status
u'closed'
>>> tests.clean_up()
>>> os.chdir(dir.dir)
>>> dir.get_bug("a").status
u'open'
- >>> execute(("a",))
+ >>> execute(["a"])
>>> dir.get_bug("a").status
u'in-progress'
>>> tests.clean_up()
>>> os.chdir(dir.dir)
>>> dir.get_bug("b").status
u'closed'
- >>> execute(("b",))
+ >>> execute(["b"])
>>> dir.get_bug("b").status
u'open'
>>> tests.clean_up()
>>> import os
>>> dir = tests.simple_bug_dir()
>>> os.chdir(dir.dir)
- >>> execute(("a",))
+ >>> execute(["a"])
None
- >>> execute(("a", "tomorrow"))
- >>> execute(("a",))
+ >>> execute(["a", "tomorrow"])
+ >>> execute(["a"])
tomorrow
- >>> execute(("a", "none"))
- >>> execute(("a",))
+ >>> execute(["a", "none"])
+ >>> execute(["a"])
None
>>> tests.clean_up()
"""
>>> import os
>>> dir = tests.simple_bug_dir()
>>> os.chdir(dir.dir)
- >>> execute(("a",))
+ >>> execute(["a"])
minor
- >>> execute(("a", "wishlist"))
- >>> execute(("a",))
+ >>> execute(["a", "wishlist"])
+ >>> execute(["a"])
wishlist
- >>> execute(("a", "none"))
+ >>> execute(["a", "none"])
Traceback (most recent call last):
UserError: Invalid severity level: none
>>> tests.clean_up()
>>> import os
>>> dir = tests.simple_bug_dir()
>>> os.chdir(dir.dir)
- >>> execute(("a",))
+ >>> execute(["a"])
No target assigned.
- >>> execute(("a", "tomorrow"))
- >>> execute(("a",))
+ >>> execute(["a", "tomorrow"])
+ >>> execute(["a"])
tomorrow
- >>> execute(("a", "none"))
- >>> execute(("a",))
+ >>> execute(["a", "none"])
+ >>> execute(["a"])
No target assigned.
>>> tests.clean_up()
"""