2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
7 import json_schema_test
10 class JsonSchemaUnittest(unittest
.TestCase
):
11 def testNocompile(self
):
14 "namespace": "compile",
20 "namespace": "functions",
31 "one": { "key": "value" }
51 "namespace": "nested",
75 schema
= json_schema
.CachedLoad('test/json_schema_test.json')
76 self
.assertEquals(compiled
, json_schema
.DeleteNocompileNodes(schema
))
78 if __name__
== '__main__':