summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-06 13:38:57 +0000
committerGerrit Code Review <review@openstack.org>2012-08-06 13:38:57 +0000
commit51002f0d0f85f077bbbfed1d151df59240775ff8 (patch)
tree9c0fdc57a3cd6933983959a8b400c28046ff60ab /nova/tests
parent9142e11580e901875617400c62e9f18aeb7d3b21 (diff)
parentc3047b988fd7e937bf822a8a54115b4cab452380 (diff)
Merge "Only log deprecated config warnings once."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_deprecated.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/tests/test_deprecated.py b/nova/tests/test_deprecated.py
index e65baa53e..ebc6fed93 100644
--- a/nova/tests/test_deprecated.py
+++ b/nova/tests/test_deprecated.py
@@ -38,3 +38,9 @@ class DeprecatedConfigTestCase(test.TestCase):
self.assertRaises(exception.DeprecatedConfig,
deprecated.warn, "test2")
self.assertEqual(self.logbuffer, 'Deprecated Config: test2')
+
+ def test_deprecated_logs_only_once(self):
+ deprecated.warn('only once!')
+ deprecated.warn('only once!')
+ deprecated.warn('only once!')
+ self.assertEqual(self.logbuffer, 'Deprecated Config: only once!')