diff options
Diffstat (limited to 'tools/json_schema_compiler/model_test.py')
-rw-r--r-- | tools/json_schema_compiler/model_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/json_schema_compiler/model_test.py b/tools/json_schema_compiler/model_test.py index a588968..3217498 100644 --- a/tools/json_schema_compiler/model_test.py +++ b/tools/json_schema_compiler/model_test.py @@ -2,22 +2,22 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -from json_schema import LoadJSON +import json import model import unittest class ModelTest(unittest.TestCase): def setUp(self): self.model = model.Model() - self.permissions_json = LoadJSON('test/permissions.json') + self.permissions_json = json.loads(open('test/permissions.json').read()) self.model.AddNamespace(self.permissions_json[0], 'path/to/permissions.json') self.permissions = self.model.namespaces.get('permissions') - self.windows_json = LoadJSON('test/windows.json') + self.windows_json = json.loads(open('test/windows.json').read()) self.model.AddNamespace(self.windows_json[0], 'path/to/window.json') self.windows = self.model.namespaces.get('windows') - self.tabs_json = LoadJSON('test/tabs.json') + self.tabs_json = json.loads(open('test/tabs.json').read()) self.model.AddNamespace(self.tabs_json[0], 'path/to/tabs.json') self.tabs = self.model.namespaces.get('tabs') |