diff options
author | selurvedu <selurvedu@users.noreply.github.com> | 2016-04-08 04:24:29 +0000 |
---|---|---|
committer | selurvedu <selurvedu@users.noreply.github.com> | 2016-04-08 04:38:18 +0000 |
commit | 73acf7ff2a83c411217aff024d35cc8b602180ed (patch) | |
tree | 1a14057c4a6e6be91536106043b28c72b5edde7c /tests.py | |
parent | 0734d45eb651ed9dd1d37b6b80265fc3a6263607 (diff) | |
download | python-json-patch-73acf7ff2a83c411217aff024d35cc8b602180ed.tar.gz |
Move list-related testcases into separate class
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -356,6 +356,9 @@ class MakePatchTestCase(unittest.TestCase): res = patch.apply(src) self.assertEqual(res, dst) + +class ListTests(unittest.TestCase): + def test_fail_prone_list_1(self): """ Test making and applying a patch of the root is a list """ src = ['a', 'r', 'b'] @@ -453,6 +456,7 @@ def get_suite(): suite.addTest(unittest.makeSuite(ApplyPatchTestCase)) suite.addTest(unittest.makeSuite(EqualityTestCase)) suite.addTest(unittest.makeSuite(MakePatchTestCase)) + suite.addTest(unittest.makeSuite(ListTests)) suite.addTest(unittest.makeSuite(InvalidInputTests)) suite.addTest(unittest.makeSuite(ConflictTests)) return suite |