

def test_it_skips_unverified_email(self):
    self._setup_data('email', 'alice@example.org', email_verified=False)
    self.channel.notify(self.check)
    assert (Notification.objects.count() == 1)
    n = Notification.objects.first()
    self.assertEqual(n.error, 'Email not verified')
    n.assertEqual(len(mail.outbox), 0)

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/tests/test_notify.py NotifyTestCase.test_it_skips_unverified_email/VarMisuse@68/96 `self`->`n`