From a9ef2eaaf4e553ed79f23693d024f4601e222875 Mon Sep 17 00:00:00 2001 From: Clint Ecker Date: Sun, 22 Jun 2014 13:34:32 -0500 Subject: [PATCH] typos --- moto/sqs/models.py | 6 +++--- tests/test_sqs/test_sqs.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/moto/sqs/models.py b/moto/sqs/models.py index 61dbfcb8e..59845fcf7 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -43,9 +43,9 @@ class Message(object): if delay_seconds: self.delay(delay_seconds=delay_seconds) - def mark_recieved(self, visibility_timeout=None): + def mark_received(self, visibility_timeout=None): """ - When a message is received we will set the first recieve timestamp, + When a message is received we will set the first receive timestamp, tap the ``approximate_receive_count`` and the ``visible_at`` time. """ if visibility_timeout: @@ -225,7 +225,7 @@ class SQSBackend(BaseBackend): result = [] # queue.messages only contains visible messages for message in queue.messages: - message.mark_recieved( + message.mark_received( visibility_timeout=queue.visibility_timeout ) result.append(message) diff --git a/tests/test_sqs/test_sqs.py b/tests/test_sqs/test_sqs.py index 5b2767ef2..06ef9f2ce 100644 --- a/tests/test_sqs/test_sqs.py +++ b/tests/test_sqs/test_sqs.py @@ -104,7 +104,7 @@ def test_send_message_with_delay(): @mock_sqs -def test_message_becomes_inflight_when_recieved(): +def test_message_becomes_inflight_when_received(): conn = boto.connect_sqs('the_key', 'the_secret') queue = conn.create_queue("test-queue", visibility_timeout=2)