'Verify correct validation of JSON strings without conversion'

def testValidationNative(self):

    assertEqual = self.assertEqual
    assertNotEqual = self.assertNotEqual
    validator = IS_JSONS3(native_json=True)
    jsonstr = '{"a":1}'
    (value, error) = validator(jsonstr)
    assertEqual(error, None)
    assertEqual(value, jsonstr)
    jsonstr = 'not    valid'
    (value, error) = validator(jsonstr)
    assertNotEqual(error, None)
    assertEqual(value, jsonstr)
    jsonstr = None
    (value, error) = validator(jsonstr)
    assertNotEqual(error, None)
    assertEqual(value, jsonstr)
