Exemplo n.º 1
0
def test_secondary_training_status_changed_empty():
    changed = secondary_training_status_changed(TRAINING_JOB_DESCRIPTION_EMPTY,
                                                TRAINING_JOB_DESCRIPTION_1)
    assert changed is False
Exemplo n.º 2
0
def test_secondary_training_status_changed_prev_none():
    changed = secondary_training_status_changed(TRAINING_JOB_DESCRIPTION_1,
                                                None)
    assert changed is True
Exemplo n.º 3
0
def test_secondary_training_status_changed_current_missing():
    changed = secondary_training_status_changed({}, TRAINING_JOB_DESCRIPTION_1)
    assert changed is False
Exemplo n.º 4
0
def test_secondary_training_status_changed_true():
    changed = secondary_training_status_changed(TRAINING_JOB_DESCRIPTION_1,
                                                TRAINING_JOB_DESCRIPTION_2)
    assert changed is True
Exemplo n.º 5
0
def test_secondary_training_status_changed_empty():
    changed = secondary_training_status_changed(TRAINING_JOB_DESCRIPTION_EMPTY, TRAINING_JOB_DESCRIPTION_1)
    assert changed is False
Exemplo n.º 6
0
def test_secondary_training_status_changed_current_missing():
    changed = secondary_training_status_changed({}, TRAINING_JOB_DESCRIPTION_1)
    assert changed is False
Exemplo n.º 7
0
def test_secondary_training_status_changed_prev_none():
    changed = secondary_training_status_changed(TRAINING_JOB_DESCRIPTION_1, None)
    assert changed is True
Exemplo n.º 8
0
def test_secondary_training_status_changed_true():
    changed = secondary_training_status_changed(TRAINING_JOB_DESCRIPTION_1, TRAINING_JOB_DESCRIPTION_2)
    assert changed is True