summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-01-27 16:54:59 -0600
committerEd Leafe <ed@leafe.com>2011-01-27 16:54:59 -0600
commitc679e64d13a9ff8643d20316d3a96ed5fc27e0ca (patch)
tree94a0a3b78b44bc550e80bde44d1f7345fd737f2b
parent55860f5fa897f81f769073fde9fe7c4bbd86bff5 (diff)
downloadnova-c679e64d13a9ff8643d20316d3a96ed5fc27e0ca.tar.gz
nova-c679e64d13a9ff8643d20316d3a96ed5fc27e0ca.tar.xz
nova-c679e64d13a9ff8643d20316d3a96ed5fc27e0ca.zip
Made changes based on code review
-rw-r--r--nova/tests/test_localization.py29
1 files changed, 17 insertions, 12 deletions
diff --git a/nova/tests/test_localization.py b/nova/tests/test_localization.py
index 0368ac016..6992773f5 100644
--- a/nova/tests/test_localization.py
+++ b/nova/tests/test_localization.py
@@ -1,25 +1,30 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+#
+# Copyright 2011 OpenStack LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
import glob
import logging
import os
import re
import sys
+import unittest
import nova
-from nova import test
-LOG = logging.getLogger('nova.tests.localization_unittest')
-
-
-class LocalizationTestCase(test.TestCase):
- def setUp(self):
- super(LocalizationTestCase, self).setUp()
-
- def tearDown(self):
- super(LocalizationTestCase, self).tearDown()
+class LocalizationTestCase(unittest.TestCase):
def test_multiple_positional_format_placeholders(self):
pat = re.compile("\W_\(")
single_pat = re.compile("\W%\W")