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))
def test_base64_not_doing_extra_1(mock_data): actual = decode_b64_if_needed(mock_data) assert actual == mock_data
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
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))