def test_can_dequeue_an_email(self):
        larry = self.make_participant('larry', email_address='larry@example.com')
        larry.queue_email("verification")

        assert self.db.one("SELECT spt_name FROM email_queue") == "verification"
        Participant.dequeue_emails()
        assert self.mailer.call_count == 1
        last_email = self.get_last_email()
        assert last_email['to'] == 'larry <larry@example.com>'
        expected = "connect larry"
        assert last_email['body_text'] in expected
        assert self.db.one("SELECT spt_name FROM email_queue") is None
dataset/ETHPy150Open gratipay/gratipay.com/tests/py/test_email.py/TestEmail.test_can_dequeue_an_email/swapped operands of `in`