~ubuntu-branches/ubuntu/oneiric/enigmail/oneiric-security

« back to all changes in this revision

Viewing changes to python/simplejson-2.1.1/simplejson/tests/test_pass3.py

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-11-12 16:36:01 UTC
  • mfrom: (0.13.9)
  • Revision ID: package-import@ubuntu.com-20121112163601-8fohb2s21m2tvgmc
Tags: 2:1.4.6-0ubuntu0.11.10.1
* New upstream release v1.4.6
  - see LP: #1080212 for USN information
* Drop unneeded patches
  - remove debian/patches/correct-version-number.diff
  - remove debian/patches/dont_register_cids_multiple_times.diff
  - update debian/patches/series
* Support building in an objdir
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from unittest import TestCase
 
2
 
 
3
import simplejson as json
 
4
 
 
5
# from http://json.org/JSON_checker/test/pass3.json
 
6
JSON = r'''
 
7
{
 
8
    "JSON Test Pattern pass3": {
 
9
        "The outermost value": "must be an object or array.",
 
10
        "In this test": "It is an object."
 
11
    }
 
12
}
 
13
'''
 
14
 
 
15
class TestPass3(TestCase):
 
16
    def test_parse(self):
 
17
        # test in/out equivalence and parsing
 
18
        res = json.loads(JSON)
 
19
        out = json.dumps(res)
 
20
        self.assertEquals(res, json.loads(out))