'dumps and loads be reversible for any JSON serializable object'

def test_dumps_loads(self):

    objects = [[u'a', u'list'], u'a    unicode    string    \u2019', {u'a': u'dictionary'}]
    if six.PY2:
        objects.append('a    byte    string')
    for o in objects:
        self.assertNotEqual(o, signing.dumps(o))
        self.assertEqual(o, signing.loads(signing.dumps(o)))
        self.assertNotEqual(o, signing.dumps(o, compress=True))
        self.assertEqual(o, signing.loads(signing.dumps(o, compress=True)))
