

def test_customization_fake_record():
    '\n    Test we allow a custom function to make a fake record.\n    '
    with patch('failnozzle.settings.INTERNAL_ERROR_FUNC', create=True) as func:
        exc = Exception()
        rec = _make_fake_record(1, exc)
        ok_(rec)
        ok_(rec.keys())
        func.assert_called_once_with(1, exc)

dataset/ETHPy150Open wingu/failnozzle/failnozzle/tests/test_customization.py test_customization_fake_record/original