PEP8 clean-up

This commit is contained in:
Florent Lebreton
2013-11-20 15:52:21 +01:00
parent 7666e781e5
commit 5c7f1d7037
12 changed files with 57 additions and 47 deletions

View File

@@ -1,5 +1,3 @@
import json
import django
from django.test import SimpleTestCase
from django.core.exceptions import ValidationError
@@ -20,7 +18,7 @@ class JSignatureFormFieldTest(SimpleTestCase):
self.assertIsNone(f.to_python(val))
# Correct values
val = '[{"x":[1,2], "y":[3,4]}]'
self.assertEquals([{'x':[1,2], 'y':[3,4]}], f.to_python(val))
self.assertEquals([{'x': [1, 2], 'y': [3, 4]}], f.to_python(val))
# Incorrect values
val = 'foo'
self.assertRaises(ValidationError, f.to_python, val)