diff options
author | Ask Solem <ask@celeryproject.org> | 2017-02-10 12:52:33 -0800 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2017-02-10 12:52:33 -0800 |
commit | 932bb6caff01d15ec9d02a376e90647ec39293e9 (patch) | |
tree | fb85bf3c12c4d087f57c03d36d5346c6e31fff94 /t/unit/test_exceptions.py | |
parent | aed8e8431bb61f0937447b5c8ef497ff931d8693 (diff) | |
download | py-amqp-3.0-devel.tar.gz |
Use keyword-only arguments3.0-devel
Diffstat (limited to 't/unit/test_exceptions.py')
-rw-r--r-- | t/unit/test_exceptions.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/t/unit/test_exceptions.py b/t/unit/test_exceptions.py deleted file mode 100644 index ca16b9a..0000000 --- a/t/unit/test_exceptions.py +++ /dev/null @@ -1,19 +0,0 @@ -from case import Mock -from amqp.exceptions import AMQPError, error_for_code - - -class test_AMQPError: - - def test_str(self): - assert str(AMQPError()) - x = AMQPError(method_sig=(50, 60)) - assert str(x) - - -class test_error_for_code: - - def test_unknown_error(self): - default = Mock(name='default') - x = error_for_code(2134214314, 't', 'm', default) - default.assert_called_with('t', 'm', reply_code=2134214314) - assert x is default() |