summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")