master/buildbot/test/fake/state.py
author ffxbld
Mon, 21 Dec 2015 18:45:46 -0500
branchproduction-0.8
changeset 1524 41a18e6acefa63abe567cb0ad73e1c85d02e8f3e
parent 78 42babfd9ed35458f5acc07b4a0302f6b42304c71
child 139 6cf864606526c53c6d68a4ee3d4b1aec5db2c204
permissions -rw-r--r--
Added FIREFOX_38_5_2esr_RELEASE FIREFOX_38_5_2esr_BUILD1 tag(s) for changeset production-0.8. DONTBUILD CLOSED TREE a=release

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)