'Check that a confirmation email was or was not sent.'

def _assert_confirmation_email(self, expect_email):

    if expect_email:
        self.assertEqual(len(mail.outbox), 1)
        self.assertEqual('Verification    photos    received', mail.outbox[0].subject)
    else:
        self.assertEqual(len(mail.outbox), 0)
