diff options
author | Mike Crute <mike@crute.us> | 2019-04-02 02:53:21 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-04-02 03:24:37 +0000 |
commit | c53035eaeb98d9f07978f249308599d722cae28c (patch) | |
tree | 28433c8f56d2610e15b7a78fe73b2fe2208d478a /tests | |
parent | 82988c77fbbc893e5659e3085bbc32f0580c74d1 (diff) | |
download | pydora-c53035eaeb98d9f07978f249308599d722cae28c.tar.bz2 pydora-c53035eaeb98d9f07978f249308599d722cae28c.tar.xz pydora-c53035eaeb98d9f07978f249308599d722cae28c.zip |
Remove deprecated constructors
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pandora/test_util.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/test_pandora/test_util.py b/tests/test_pandora/test_util.py deleted file mode 100644 index d8c3876..0000000 --- a/tests/test_pandora/test_util.py +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | import warnings | ||
2 | from unittest import TestCase | ||
3 | from unittest.mock import patch | ||
4 | |||
5 | from pandora import util | ||
6 | |||
7 | |||
8 | class TestDeprecatedWarning(TestCase): | ||
9 | |||
10 | def test_warning(self): | ||
11 | class Bar(object): | ||
12 | |||
13 | @util.deprecated("1.0", "2.0", "Don't use this") | ||
14 | def foo(self): | ||
15 | pass | ||
16 | |||
17 | with patch.object(warnings, "warn") as wmod: | ||
18 | Bar().foo() | ||
19 | |||
20 | wmod.assert_called_with( | ||
21 | ("foo is deprecated as of version 1.0 and will be removed in " | ||
22 | "version 2.0. Don't use this"), DeprecationWarning) | ||