summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselurvedu <selurvedu@users.noreply.github.com>2015-10-18 21:17:38 +0000
committerselurvedu <selurvedu@users.noreply.github.com>2016-04-08 04:38:18 +0000
commit0734d45eb651ed9dd1d37b6b80265fc3a6263607 (patch)
tree1d6b7a69e85263ce54e9615ddda127bc3eb3629e
parent6761340d8b4eae3419eebfb202c09f9956387148 (diff)
downloadpython-json-patch-0734d45eb651ed9dd1d37b6b80265fc3a6263607.tar.gz
Update tests from ea80865 to run on Python 3.2
-rwxr-xr-xtests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests.py b/tests.py
index 8da9cfc..d2f9fe9 100755
--- a/tests.py
+++ b/tests.py
@@ -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)