| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |