aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/tests.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:40:30 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-24 15:40:30 +0000
commit8415269dba471080ee732ec309ed73529847fbc1 (patch)
treecd5d142242e5fa58b09714f35d0071d2b8358973 /libbe/tests.py
parenta361d20bdcf4ad3a48414faaeed063eb86e52307 (diff)
downloadbugseverywhere-8415269dba471080ee732ec309ed73529847fbc1.tar.gz
Implemented tests for 'open'
Diffstat (limited to 'libbe/tests.py')
-rw-r--r--libbe/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbe/tests.py b/libbe/tests.py
index b6d3083..c5b9f49 100644
--- a/libbe/tests.py
+++ b/libbe/tests.py
@@ -27,3 +27,12 @@ def arch_dir():
def bug_arch_dir():
dir = arch_dir()
return bugdir.create_bug_dir(dir.name, arch)
+
+def simple_bug_dir():
+ dir = bug_arch_dir()
+ bug_a = bugdir.new_bug(dir, "a")
+ bug_b = bugdir.new_bug(dir, "b")
+ bug_b.status = "closed"
+ bug_a.save()
+ bug_b.save()
+ return dir