Example #1
0
def test_base64_not_doing_extra_3(mock_data):
    actual = decode_b64_if_needed(predict_template(predict_template(mock_data)))
    assert actual == predict_template(predict_template(mock_data))
Example #2
0
def test_base64_not_doing_extra_1(mock_data):
    actual = decode_b64_if_needed(mock_data)
    assert actual == mock_data
Example #3
0
def test_base64_decodes(raw_predict_payload, mock_data):
    actual = decode_b64_if_needed(raw_predict_payload)
    expected = predict_template(mock_data)
    assert actual == expected
Example #4
0
def test_base64_not_doing_extra_3(mock_data):
    actual = decode_b64_if_needed(predict_template(
        predict_template(mock_data)))
    assert actual == predict_template(predict_template(mock_data))
Example #5
0
def test_base64_not_doing_extra_1(mock_data):
    actual = decode_b64_if_needed(mock_data)
    assert actual == mock_data
Example #6
0
def test_base64_decodes(raw_predict_payload, mock_data):
    actual = decode_b64_if_needed(raw_predict_payload)
    expected = predict_template(mock_data)
    assert actual == expected