micropython

Change of tests/class_method_usage.py

551:c46e8aca4726
tests/class_method_usage.py
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/class_method_usage.py	Fri Jun 22 00:11:51 2012 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +#!/usr/bin/env python
     1.5 +
     1.6 +def p(x):
     1.7 +    return x
     1.8 +
     1.9 +class C:
    1.10 +    def f(self):
    1.11 +        return 1
    1.12 +    m = p(f)
    1.13 +
    1.14 +    def g(self):
    1.15 +        return 2
    1.16 +    n = p(g)
    1.17 +
    1.18 +c = C()
    1.19 +result_1 = c.m()
    1.20 +
    1.21 +# vim: tabstop=4 expandtab shiftwidth=4