Skip to content

Commit

Permalink
fix build failure
Browse files Browse the repository at this point in the history
do not check by string, the key order is not consistent between python
versions.
  • Loading branch information
mission-liao committed Apr 15, 2017
1 parent a9ced98 commit c569a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyswagger/tests/v2_0/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import unittest
import os
import six
import json


class RequestTestCase(unittest.TestCase):
Expand Down Expand Up @@ -64,7 +65,7 @@ def test_missing_reference_parameter(self):
"""
req, _ = self.app.op['missing.parameter'](body=dict(f1='say', f2='hello'))
req.prepare()
self.assertEqual(req.data, '{"f1": "say", "f2": "hello"}')
self.assertEqual(json.loads(req.data), {'f1': "say", 'f2': "hello"})


class ResponseTestCase(unittest.TestCase):
Expand Down

0 comments on commit c569a9c

Please sign in to comment.