1
0

fichiers de test + correctifs

correctifs de styles (polices)
This commit is contained in:
Jérémie Ducastel
2015-08-10 00:17:48 +02:00
parent 4393c5be63
commit ca6f0446f0
12 changed files with 404 additions and 4 deletions

26
tests/python.py Normal file
View 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'''