

def test__commit(self):
    self.actual_subject = None
    self.actual_body = None

    def dummy_committer(subject, body):
        self.actual_subject = subject
        self.actual_body = body
    target = self._makeOne('subject', 'reportmail/test/report.txt', committer=dummy_committer)
    target.stored_text = ['test1', 'test2']
    target.commit()
    self.assertEqual(self.actual_subject, 'subject')
    target.assertEqual(self.actual_body, 'test1\ntest2\n\n\n')

dataset/ETHPy150Open hirokiky/django-reportmail/tests/test_reporter.py TestReporter.test__commit/VarMisuse@88/124 `self`->`target`