Activate method in Python
<p>I'm trying to set my Python programs in classes. But when I have this:</p>

<pre><code>class program:

    def test(value):
        print value + 1

    def functionTest():
        a = test(2)

    if __name__ == "__main__":
        functionTest()
</code></pre>

<p>I get the error : <strong>NameError: global name 'test' is not defined</strong></p>

<p>What do I have to do to 'activate' the test-method?
Thanks a lot!</p>
