~ubuntu-branches/ubuntu/saucy/simplejson/saucy-proposed

« back to all changes in this revision

Viewing changes to simplejson/tests/test_recursion.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-06-13 13:50:06 UTC
  • mfrom: (1.1.26)
  • Revision ID: package-import@ubuntu.com-20130613135006-czq95vh3xi2no8ch
Tags: 3.3.0-0ubuntu1
* New upstream release
* debian/rules: Enable tests.
* Separate docs into its own package:
  - debian/python-simplejson-doc.install: Add.
* Add python3 support:
  - debian/control: Add python3-simplejson binary package. Build-Depend
    on python3-all-dev. Add X-Python3-Version: >= 3.3.
  - debian/python3-simplejson.install: Add.
  - debian/rules: Enable Python 3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
    def test_defaultrecursion(self):
59
59
        enc = RecursiveJSONEncoder()
60
 
        self.assertEquals(enc.encode(JSONTestObject), '"JSONTestObject"')
 
60
        self.assertEqual(enc.encode(JSONTestObject), '"JSONTestObject"')
61
61
        enc.recurse = True
62
62
        try:
63
63
            enc.encode(JSONTestObject)