summaryrefslogtreecommitdiff
path: root/test/unittest_deprecation.py
diff options
context:
space:
mode:
authorLaurent Peuch <cortex@worlddomination.be>2020-04-22 22:43:05 +0200
committerLaurent Peuch <cortex@worlddomination.be>2020-04-22 22:43:05 +0200
commite049c82dafddb0a3b2ae4aaebb12974424feb6de (patch)
tree067ad45528a1689e96c297614b639b8202e5d481 /test/unittest_deprecation.py
parent81aa933d7c0a55c455d03112578fb5f67bbdda7c (diff)
downloadlogilab-common-e049c82dafddb0a3b2ae4aaebb12974424feb6de.tar.gz
[deprecation/refactoring] simplify deprecated
Diffstat (limited to 'test/unittest_deprecation.py')
-rw-r--r--test/unittest_deprecation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unittest_deprecation.py b/test/unittest_deprecation.py
index a348d67..09902a2 100644
--- a/test/unittest_deprecation.py
+++ b/test/unittest_deprecation.py
@@ -57,7 +57,7 @@ class RawInputTC(TestCase):
any_func = deprecation.deprecated('message')(self.mk_func())
any_func()
self.assertEqual(self.messages,
- ['The function "any_func" is deprecated', 'message'])
+ ['[logilab.common] The function "any_func" is deprecated', '[logilab.common] message'])
def test_deprecated_decorator(self):
@deprecation.deprecated()
@@ -69,7 +69,7 @@ class RawInputTC(TestCase):
pass
any_func()
self.assertEqual(self.messages,
- ['The function "any_func" is deprecated', 'message'])
+ ['[logilab.common] The function "any_func" is deprecated', '[logilab.common] message'])
def test_attribute_renamed(self):
@deprecation.attribute_renamed(old_name="old", new_name="new")