diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-31 14:59:06 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-31 14:59:06 -0400 |
commit | 58cba607535cd33c97fd5dc3737c9da4afa9a6bb (patch) | |
tree | 7f5cfec092fe27735bf1228fb124601a920fc85f /libbe/diff.py | |
parent | 3c4ce1b4519186007f2568569b1bff55cdbb108f (diff) | |
download | bugseverywhere-58cba607535cd33c97fd5dc3737c9da4afa9a6bb.tar.gz |
Improved unittest cleanup by adding BugDir.cleanup().
Also simple_bug_dir -> SimpleBugDir class, which allows me to add
utility.Dir cleanup to SimpleBugDir.cleanup().
Still having a bit of trouble with the becommand.new tests due to
bugdir loading though...
Diffstat (limited to 'libbe/diff.py')
-rw-r--r-- | libbe/diff.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/diff.py b/libbe/diff.py index 459da4b..1b52620 100644 --- a/libbe/diff.py +++ b/libbe/diff.py @@ -136,7 +136,7 @@ class Diff (object): """ Difference tree generator for BugDirs. >>> import copy - >>> bd = bugdir.simple_bug_dir(sync_with_disk=False) + >>> bd = bugdir.SimpleBugDir(sync_with_disk=False) >>> bd.user_id = "John Doe <j@doe.com>" >>> bd_new = copy.deepcopy(bd) >>> bd_new.target = "1.0" @@ -180,6 +180,7 @@ class Diff (object): New comments: from John Doe <j@doe.com> on Thu, 01 Jan 1970 00:00:00 +0000 I'm closing this bug... + >>> bd.cleanup() """ def __init__(self, old_bugdir, new_bugdir): self.old_bugdir = old_bugdir |