~ubuntu-branches/ubuntu/oneiric/lightning-extension/oneiric-updates

« back to all changes in this revision

Viewing changes to mozilla/other-licenses/simplejson-2.1.1/simplejson/tests/test_pass2.py

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-11-08 10:00:06 UTC
  • mfrom: (1.3.8)
  • Revision ID: package-import@ubuntu.com-20121108100006-xpf89hktfitzuqc3
Tags: 1.9+build1-0ubuntu0.11.10.1
* New upstream stable release to support Thunderbird 17 (CALENDAR_1_9_BUILD1)
  - see LP: #1080212 for USN information

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from unittest import TestCase
2
 
import simplejson as json
3
 
 
4
 
# from http://json.org/JSON_checker/test/pass2.json
5
 
JSON = r'''
6
 
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
7
 
'''
8
 
 
9
 
class TestPass2(TestCase):
10
 
    def test_parse(self):
11
 
        # test in/out equivalence and parsing
12
 
        res = json.loads(JSON)
13
 
        out = json.dumps(res)
14
 
        self.assertEquals(res, json.loads(out))