PageRenderTime 51ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

/pyjs/tests/test040.py

http://pyjamas.googlecode.com/
Python | 18 lines | 11 code | 5 blank | 2 comment | 0 complexity | 0ac0eb619007055e7c408f202b5093c2 MD5 | raw file
 1# some assignment tests
 2
 3
 4class Foo:
 5
 6    mu = 5
 7
 8    def test(self):
 9        foo = 5
10        baz[1] = 5
11        bar.foo = 5
12        self.foo = 5
13        biz.baz.foo = 5
14        baz[2].foo = 5
15    
16        # augmented assignments
17        foo += 5
18        bar.foo += 5