diff options
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() |