Skip to content

Commit e4dde33

Browse files
author
MattDMo
committed
Random test code
1 parent b5f5a21 commit e4dde33

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

tests/test_code.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
class Foo(tuple):
2+
@staticmethod
3+
def __new__(cls, initialValue=(0,0)):
4+
return tuple.__new__(cls, initialValue)
5+
6+
7+
class Bar(tuple):
8+
def __init__(self, initialValue=(0,0)):
9+
super(tuple, self).__init__(initialValue)
10+
super(tuple, self).count(items, stuff="thneed")
11+
12+
@staticmethod
13+
def somefunc(arg, arrg=pirate):
14+
pass
15+
16+
17+
list(map(str, range(100)))
18+
[str(i) for i in range(100)]
19+
20+
sâomething(arg=22)
21+
22+
def sâomething():
23+
pass
24+
25+
class sâomething(object):
26+
pass
27+
28+
29+
list(map(str, range(100)))
30+
[str(i) for i in range(100)]
31+
32+
super(arg1=1)(arg2=2)
33+
list abs, map
34+
some.None NotImplemented
35+
36+
print (file=None)
37+
print __class__
38+
print keyword
39+
print __init__
40+
print(foobar)
41+
42+
__init__ . something()
43+
44+
callback(print)
45+
callback(range)
46+
47+
.__init__
48+
__init__ [2]
49+
50+
51+
@ deco . __init__ (call=some) # rator
52+
def function():
53+
pass
54+
55+
56+
mod.func()
57+
mod.submod.func()
58+
func().func2().attr
59+
mod.func().attr.attr2.func2()
60+
61+
range(foo, bar)
62+
(...)
63+
64+
__exit__
65+
print foobar
66+
Привет_мир() or 我喜欢奶酪() or Kolbász_finom()
67+
68+
bool
69+
70+
class MyWarning(Warning):
71+
def __init__(self, text='first part'
72+
'second part'):
73+
self.args = (text,)
74+
75+
foo(text="line 1"
76+
"line 2")

0 commit comments

Comments
 (0)