def test_experiment_date_returns_completed_with_date_completed():
    with_date_completed = {'date_completed': '1993'}

    expected = 'Completed: 1993'
    result = experiment_date(with_date_completed)

    assert expected == result
def test_experiment_date_returns_approved_with_date_started():
    with_date_started = {'date_approved': '1993'}

    expected = 'Approved: 1993'
    result = experiment_date(with_date_started)

    assert expected == result
def test_experiment_date_returns_still_running_with_date_completed_9999():
    with_date_completed_9999 = {'date_completed': '9999'}

    expected = 'Still Running'
    result = experiment_date(with_date_completed_9999)

    assert expected == result
예제 #4
0
def test_experiment_date_returns_completed_with_date_completed():
    with_date_completed = {'date_completed': '1993'}

    expected = 'Completed: 1993'
    result = experiment_date(with_date_completed)

    assert expected == result
예제 #5
0
def test_experiment_date_returns_approved_with_date_started():
    with_date_started = {'date_approved': '1993'}

    expected = 'Approved: 1993'
    result = experiment_date(with_date_started)

    assert expected == result
예제 #6
0
def test_experiment_date_returns_still_running_with_date_completed_9999():
    with_date_completed_9999 = {'date_completed': '9999'}

    expected = 'Still Running'
    result = experiment_date(with_date_completed_9999)

    assert expected == result
def test_experiment_date_returns_proposed_with_date_started():
    with_date_started = InspireRecord({'date_proposed': '1993'})

    expected = 'Proposed: 1993'
    result = experiment_date(with_date_started)

    assert expected == result
예제 #8
0
def test_experiment_date_returns_proposed_with_date_started():
    with_date_started = InspireRecord({'date_proposed': '1993'})

    expected = 'Proposed: 1993'
    result = experiment_date(with_date_started)

    assert expected == result
def test_experiment_date_returns_none_with_no_dates():
    with_no_dates = {}

    assert experiment_date(with_no_dates) is None
예제 #10
0
def test_experiment_date_returns_none_with_no_dates():
    with_no_dates = {}

    assert experiment_date(with_no_dates) is None
def test_experiment_date_returns_none_with_no_dates():
    with_no_dates = InspireRecord({})

    assert experiment_date(with_no_dates) is None
예제 #12
0
def test_experiment_date_returns_none_with_no_dates():
    with_no_dates = InspireRecord({})

    assert experiment_date(with_no_dates) is None