def test_should_not_email(self): et = ErrorTypeHandler() assert not et.should_email(self.fake_record(self.io_error()))
def test_should_email(self): et = ErrorTypeHandler() assert et.should_email(self.fake_record(self.division_error()))