Skip to content
Browse files

Fix first SQS test.

The first SQS test is to try to create a queue with an illegal name,
but the name used isn't actually illegal.  The first time you run the
test, it create a queue with that name, which then throws the queue
count off for the next test.

The name used now includes a "*" which is illegal, and also will fail
if no exception is thrown when creating the queue.
  • Loading branch information...
1 parent 35c93a1 commit debc9387d5ca4787c0bd2d0fa454f3b5bed8bade @bwbeach bwbeach committed Jul 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/sqs/test_connection.py
View
3 tests/sqs/test_connection.py
@@ -43,7 +43,8 @@ def test_1_basic(self):
# try illegal name
try:
- queue = c.create_queue('bad_queue_name')
+ queue = c.create_queue('bad*queue*name')
+ self.fail('queue name should have been bad')
except SQSError:
pass

0 comments on commit debc938

Please sign in to comment.
Something went wrong with that request. Please try again.