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,4 @@
import json
import django
from django.test import SimpleTestCase
from django.core.exceptions import ValidationError
@@ -44,7 +43,7 @@ class JSignatureWidgetTest(SimpleTestCase):
for val in ['', [], '[]']:
self.assertEqual('[]', w.prep_value(val))
# Correct values
val = [{"x":[1,2], "y":[3,4]}]
val = [{"x": [1, 2], "y": [3, 4]}]
val_prep = w.prep_value(val)
self.assertIsInstance(val_prep, basestring)
self.assertEquals(val, json.loads(val_prep))