

def test_email(self):
    self._setup_data('email', 'alice@example.org')
    self.channel.notify(n.check)
    n = Notification.objects.get()
    self.assertEqual(n.error, '')
    self.assertEqual(len(mail.outbox), 1)

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/tests/test_notify.py NotifyTestCase.test_email/VarMisuse@25/37 `self`->`n`