def test_numberlong(self):
    jsn = '{"weight": {"$numberLong": "65535"}}'
    self.assertEqual(json_util.loads(jsn)['weight'], Int64(65535))
    self.assertEqual(json_util.dumps({'weight': Int64(65535)}), '{"weight": 65535}')
    json_options = json_util.JSONOptions(strict_number_long=True)
    self.assertEqual(json_util.dumps({'weight': Int64(65535)}, json_options=json_options), jsn)
def test_numberlong(self):
    jsn = '{"weight": {"$numberLong": "65535"}}'
    self.assertEqual(json_util.loads(jsn)['weight'], Int64(65535))
    self.assertEqual(json_util.dumps({'weight': Int64(65535)}), '{"weight": 65535}')
    json_options = json_util.JSONOptions(strict_number_long=True)
    self.assertEqual(json_util.dumps({'weight': Int64(65535)}, json_options=json_options), jsn)