def METHOD_NAME(self):
    """Test the BuildError exception."""
    try:
        raise SCons.Errors.BuildError(
            errstr = "foo", status=57, filename="file", exc_info=(1,2,3),
            node = "n", executor="e", action="a", command="c")
    except SCons.Errors.BuildError as e:
        assert e.errstr == "foo"
        assert e.status == 57
        assert e.exitstatus == 2, e.exitstatus
        assert e.filename == "file"
        assert e.exc_info == (1,2,3)
        assert e.node == "n"
        assert e.executor == "e"
        assert e.action == "a"
        assert e.command == "c"
    try:
        raise SCons.Errors.BuildError("n", "foo", 57, 3, "file", 
                                      "e", "a", "c", (1,2,3))
    except SCons.Errors.BuildError as e:
        assert e.errstr == "foo", e.errstr
        assert e.status == 57, e.status
        assert e.exitstatus == 3, e.exitstatus
        assert e.filename == "file", e.filename
        assert e.exc_info == (1,2,3), e.exc_info
        assert e.node == "n"
        assert e.executor == "e"
        assert e.action == "a"
        assert e.command == "c"
    try:
        raise SCons.Errors.BuildError()
    except SCons.Errors.BuildError as e:
        assert e.errstr == "Unknown error"
        assert e.status == 2
        assert e.exitstatus == 2
        assert e.filename is None
        assert e.exc_info == (None, None, None)
        assert e.node is None
        assert e.executor is None
        assert e.action is None
        assert e.command is None