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

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

Issue 10546078: Extension docs server: APIDataSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FetcherCache Created 8 years, 6 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 | Annotate | Revision Log
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 'fooBarBaz': 'foo_bar_baz', 94 'fooBarBaz': 'foo_bar_baz',
95 'fooBARBaz': 'foo_bar_baz', 95 'fooBARBaz': 'foo_bar_baz',
96 'fooBAR': 'foo_bar', 96 'fooBAR': 'foo_bar',
97 'FOO': 'foo', 97 'FOO': 'foo',
98 'FOOBar': 'foo_bar', 98 'FOOBar': 'foo_bar',
99 'foo.bar': 'foo_bar', 99 'foo.bar': 'foo_bar',
100 'foo.BAR': 'foo_bar', 100 'foo.BAR': 'foo_bar',
101 'foo.barBAZ': 'foo_bar_baz' 101 'foo.barBAZ': 'foo_bar_baz'
102 } 102 }
103 for name in expectations: 103 for name in expectations:
104 self.assertEquals(expectations[name], model._UnixName(name)); 104 self.assertEquals(expectations[name], model.UnixName(name));
105 105
106 if __name__ == '__main__': 106 if __name__ == '__main__':
107 unittest.main() 107 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698