

def test__abort(self):
    self.called = False

    def dummy_committer(subject, body):
        self.called = True
    target = self._makeOne('', '')
    self.assertFalse(target.aborted)
    target.abort()
    self.assertTrue(target.aborted)
    target.commit()
    self.assertFalse(self.called)

dataset/ETHPy150Open hirokiky/django-reportmail/tests/test_reporter.py TestReporter.test__abort/original