Skip to content
This repository
Browse code

dont depend on output rendering ordering in tests

  • Loading branch information...
commit 76d93d1992204a424c2fc6ea18596f3c4b0eb6de 1 parent 3e0579f
Chris McDonough authored December 12, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  deform/tests/test_widget.py
4  deform/tests/test_widget.py
@@ -259,7 +259,7 @@ def test_serialize_url(self):
259 259
         self.assertEqual(renderer.kw['field'], field)
260 260
         self.assertEqual(renderer.kw['cstruct'], cstruct)
261 261
         self.assertEqual(renderer.kw['options'],
262  
-                         '{"delay": 400, "minLength": 2}')
  262
+                         json.dumps({"delay": 400, "minLength": 2}))
263 263
         self.assertEqual(renderer.kw['values'],
264 264
                          json.dumps(url))
265 265
 
@@ -277,7 +277,7 @@ def test_serialize_iterable(self):
277 277
         self.assertEqual(renderer.kw['field'], field)
278 278
         self.assertEqual(renderer.kw['cstruct'], cstruct)
279 279
         self.assertEqual(renderer.kw['options'],
280  
-                         '{"delay": 10, "minLength": 2}')
  280
+                         json.dumps({"delay": 10, "minLength": 2}))
281 281
         self.assertEqual(renderer.kw['values'],
282 282
                          json.dumps(vals))
283 283
 

0 notes on commit 76d93d1

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