def test_StatisticalResult_class():
    sr = stats.StatisticalResult(True, 0.04, 5.0)
    assert sr.is_significant
    assert sr.test_result == "Reject Null"

    sr = stats.StatisticalResult(None, 0.04, 5.0)
    assert not sr.is_significant
    assert sr.test_result == "Cannot Reject Null"

    sr = stats.StatisticalResult(True, 0.05, 5.0, kw='some_value')
    assert hasattr(sr, 'kw')
    assert getattr(sr, 'kw') == 'some_value'
    assert 'some_value' in sr.__unicode__()
dataset/ETHPy150Open CamDavidsonPilon/lifelines/tests/test_statistics.py/test_StatisticalResult_class/original