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

Side by Side Diff: chrome/common/extensions/docs/server2/object_store_creator_test.py

Issue 297963004: Docserver: Update app version parsing since AppEngine started including / (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 6 years, 7 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
« no previous file with comments | « chrome/common/extensions/docs/server2/object_store_creator.py ('k') | no next file » | 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 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 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 import unittest 6 import unittest
7 7
8 from appengine_wrappers import GetAppVersion 8 from environment import GetAppVersion
9 from test_object_store import TestObjectStore 9 from test_object_store import TestObjectStore
10 from object_store_creator import ObjectStoreCreator 10 from object_store_creator import ObjectStoreCreator
11 11
12 class _FooClass(object): 12 class _FooClass(object):
13 def __init__(self): pass 13 def __init__(self): pass
14 14
15 class ObjectStoreCreatorTest(unittest.TestCase): 15 class ObjectStoreCreatorTest(unittest.TestCase):
16 def setUp(self): 16 def setUp(self):
17 self._creator = ObjectStoreCreator(start_empty=False, 17 self._creator = ObjectStoreCreator(start_empty=False,
18 store_type=TestObjectStore, 18 store_type=TestObjectStore,
(...skipping 26 matching lines...) Expand all
45 self.assertRaises(ValueError, ObjectStoreCreator) 45 self.assertRaises(ValueError, ObjectStoreCreator)
46 46
47 def testIllegalCharacters(self): 47 def testIllegalCharacters(self):
48 self.assertRaises(ValueError, 48 self.assertRaises(ValueError,
49 self._creator.Create, _FooClass, app_version='1&2') 49 self._creator.Create, _FooClass, app_version='1&2')
50 self.assertRaises(ValueError, 50 self.assertRaises(ValueError,
51 self._creator.Create, _FooClass, category='a=&b') 51 self._creator.Create, _FooClass, category='a=&b')
52 52
53 if __name__ == '__main__': 53 if __name__ == '__main__':
54 unittest.main() 54 unittest.main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/object_store_creator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698