Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
by46 committed Jan 17, 2016
1 parent a2400b9 commit 90b1dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/objson2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class Dolphin2TestCase(unittest.TestCase):
def test_multi_object(self):
text = r'[{"name":"benjamin"}, {"name": "wendy"}]'
persons = simplekit.objson.loads(text)
persons = sorted(persons, lambda x,y: x.name < y.name)
persons = sorted(persons, lambda x, y: x.name < y.name)
self.assertEqual(u"benjamin", persons[0].name)
self.assertEqual(u"wendy", persons[1].name
self.assertEqual(u"wendy", persons[1].name)

0 comments on commit 90b1dba

Please sign in to comment.