Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: tools/json_schema_compiler/model_test.py

Issue 23549025: Clean up JSON Schema Compiler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed enum test and added blank lines. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/json_schema_compiler/json_schema_test.py ('k') | tools/json_schema_compiler/preview.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 from json_schema import CachedLoad 6 from json_schema import CachedLoad
7 import model 7 import model
8 import unittest 8 import unittest
9 9
10 class ModelTest(unittest.TestCase): 10 class ModelTest(unittest.TestCase):
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 'fooBARBaz': 'foo_bar_baz', 91 'fooBARBaz': 'foo_bar_baz',
92 'fooBAR': 'foo_bar', 92 'fooBAR': 'foo_bar',
93 'FOO': 'foo', 93 'FOO': 'foo',
94 'FOOBar': 'foo_bar', 94 'FOOBar': 'foo_bar',
95 'foo.bar': 'foo_bar', 95 'foo.bar': 'foo_bar',
96 'foo.BAR': 'foo_bar', 96 'foo.BAR': 'foo_bar',
97 'foo.barBAZ': 'foo_bar_baz', 97 'foo.barBAZ': 'foo_bar_baz',
98 'foo_Bar_Baz_box': 'foo_bar_baz_box', 98 'foo_Bar_Baz_box': 'foo_bar_baz_box',
99 } 99 }
100 for name in expectations: 100 for name in expectations:
101 self.assertEquals(expectations[name], model.UnixName(name)); 101 self.assertEquals(expectations[name], model.UnixName(name))
102
102 103
103 if __name__ == '__main__': 104 if __name__ == '__main__':
104 unittest.main() 105 unittest.main()
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/json_schema_test.py ('k') | tools/json_schema_compiler/preview.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698