from unittest import TestCase
from unittest.mock import patch

from opwen_email_server.api import sendgrid


class ReceiveTests(TestCase):
    @patch('opwen_email_server.api.sendgrid.QUEUE')
    @patch('opwen_email_server.api.sendgrid.STORAGE')
    def test_stores_and_processes_incoming_email(self, storage_mock, queue_mock):
        sendgrid.receive('some-mime-email')

        self.assertEqual(storage_mock.store_text.call_count, 1)
        self.assertEqual(queue_mock.enqueue.call_count, 1)

@@ -276,16 +276,11 @@
 ses_
-incoming
+new
 _ema

Make flake8 happy