forked from buildbot/buildbot
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildbot.util.loop, new tests, buildbot.test.state
* Add a new test utility, buildbot.test.state, and document it * move loop to buildbot.util * new and improved tests for loop
- Loading branch information
Dustin J. Mitchell
committed
Feb 21, 2010
1 parent
2d0b6bf
commit f661ad2
Showing
6 changed files
with
304 additions
and
271 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class State(object): | ||
""" | ||
A simple class you can use to keep track of state throughout | ||
a test. Just assign whatever you want to its attributes. Its | ||
constructor provides a shortcut to setting initial values for | ||
attributes | ||
""" | ||
def __init__(self, **kwargs): | ||
self.__dict__.update(kwargs) |
Oops, something went wrong.