diff options
author | selurvedu <selurvedu@users.noreply.github.com> | 2015-10-18 21:17:38 +0000 |
---|---|---|
committer | selurvedu <selurvedu@users.noreply.github.com> | 2016-04-08 04:38:18 +0000 |
commit | 0734d45eb651ed9dd1d37b6b80265fc3a6263607 (patch) | |
tree | 1d6b7a69e85263ce54e9615ddda127bc3eb3629e /tests.py | |
parent | 6761340d8b4eae3419eebfb202c09f9956387148 (diff) | |
download | python-json-patch-0734d45eb651ed9dd1d37b6b80265fc3a6263607.tar.gz |
Update tests from ea80865 to run on Python 3.2
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -358,32 +358,32 @@ class MakePatchTestCase(unittest.TestCase): def test_fail_prone_list_1(self): """ Test making and applying a patch of the root is a list """ - src = [u'a', u'r', u'b'] - dst = [u'b', u'o'] + src = ['a', 'r', 'b'] + dst = ['b', 'o'] patch = jsonpatch.make_patch(src, dst) res = patch.apply(src) self.assertEqual(res, dst) def test_fail_prone_list_2(self): """ Test making and applying a patch of the root is a list """ - src = [u'a', u'r', u'b', u'x', u'm', u'n'] - dst = [u'b', u'o', u'm', u'n'] + src = ['a', 'r', 'b', 'x', 'm', 'n'] + dst = ['b', 'o', 'm', 'n'] patch = jsonpatch.make_patch(src, dst) res = patch.apply(src) self.assertEqual(res, dst) def test_fail_prone_list_3(self): """ Test making and applying a patch of the root is a list """ - src = [u'boo1', u'bar', u'foo1', u'qux'] - dst = [u'qux', u'bar'] + src = ['boo1', 'bar', 'foo1', 'qux'] + dst = ['qux', 'bar'] patch = jsonpatch.make_patch(src, dst) res = patch.apply(src) self.assertEqual(res, dst) def test_fail_prone_list_4(self): """ Test making and applying a patch of the root is a list """ - src = [u'bar1', 59, u'foo1', u'foo'] - dst = [u'foo', u'bar', u'foo1'] + src = ['bar1', 59, 'foo1', 'foo'] + dst = ['foo', 'bar', 'foo1'] patch = jsonpatch.make_patch(src, dst) res = patch.apply(src) self.assertEqual(res, dst) |