Skip to content
Browse files

dont depend on output rendering ordering in tests

  • Loading branch information...
1 parent 3e0579f commit 76d93d1992204a424c2fc6ea18596f3c4b0eb6de @mcdonc mcdonc committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 deform/tests/test_widget.py
View
4 deform/tests/test_widget.py
@@ -259,7 +259,7 @@ def test_serialize_url(self):
self.assertEqual(renderer.kw['field'], field)
self.assertEqual(renderer.kw['cstruct'], cstruct)
self.assertEqual(renderer.kw['options'],
- '{"delay": 400, "minLength": 2}')
+ json.dumps({"delay": 400, "minLength": 2}))
self.assertEqual(renderer.kw['values'],
json.dumps(url))
@@ -277,7 +277,7 @@ def test_serialize_iterable(self):
self.assertEqual(renderer.kw['field'], field)
self.assertEqual(renderer.kw['cstruct'], cstruct)
self.assertEqual(renderer.kw['options'],
- '{"delay": 10, "minLength": 2}')
+ json.dumps({"delay": 10, "minLength": 2}))
self.assertEqual(renderer.kw['values'],
json.dumps(vals))

0 comments on commit 76d93d1

Please sign in to comment.
Something went wrong with that request. Please try again.