diff options
author | Matt Wise <matt@nextdoor.com> | 2013-12-02 09:11:33 -0800 |
---|---|---|
committer | Matt Wise <matt@nextdoor.com> | 2013-12-02 09:11:33 -0800 |
commit | 73888c6aee8c0a679d5cf08417b42d4219f8c3f3 (patch) | |
tree | b0f8905f1b9da72d17a8b03c642e738f8d1371a7 | |
parent | 2b814298ac051838d124c648a3112a9b903e835d (diff) | |
download | kombu-73888c6aee8c0a679d5cf08417b42d4219f8c3f3.tar.gz |
Add test_get_with_empty_list method to check that Empty is raised
-rw-r--r-- | kombu/tests/transport/test_SQS.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kombu/tests/transport/test_SQS.py b/kombu/tests/transport/test_SQS.py index 8755cfa8..5276c7b9 100644 --- a/kombu/tests/transport/test_SQS.py +++ b/kombu/tests/transport/test_SQS.py @@ -11,6 +11,7 @@ import os import pickle from kombu import Connection +from kombu import five from kombu.tests.case import Case from kombu.transport import SQS @@ -227,6 +228,9 @@ class test_Channel(Case): self.removeMockedQueueFile(queue_name) self.assertNotIn(queue_name, self.channel._queue_cache) + def test_get_with_empty_list(self): + self.assertRaises(five.Empty, self.channel._get, self.queue_name) + def test_put_and_get(self): message = "my test message" self.channel._put(self.queue_name, message) |