fichiers de test + correctifs
correctifs de styles (polices)
This commit is contained in:
26
tests/python.py
Normal file
26
tests/python.py
Normal file
@ -0,0 +1,26 @@
|
||||
from django.test import TestCase
|
||||
|
||||
@requires_authorization
|
||||
def somefunc(param1='', param2=0):
|
||||
r'''A docstring'''
|
||||
if param1 > param2: # interesting
|
||||
print 'Gre\'ater'
|
||||
return (param2 - param1 + 1) or None
|
||||
|
||||
class SomeClass:
|
||||
def cats(arg):
|
||||
abc = 1
|
||||
deg = [1, 2, '3']
|
||||
|
||||
def another(arg):
|
||||
9.0/12.0
|
||||
pass
|
||||
|
||||
def method(self, arg2='default', arg3):
|
||||
self.arg2 = arg3
|
||||
|
||||
if __name__ == '__main__':
|
||||
SomeClass.another('hello')
|
||||
|
||||
>>> message = '''interpreter
|
||||
... prompt'''
|
Reference in New Issue
Block a user