コード例 #1
0
def test_is_uploaded_file_false(value):
    """Pass."""
    exp = False, value
    result = is_uploaded_file(value=value)
    assert result == exp
コード例 #2
0
def test_is_uploaded_file_true_json():
    """Pass."""
    value = '{"uuid": "x", "filename": "x"}'
    exp = True, {"uuid": "x", "filename": "x"}
    result = is_uploaded_file(value=value)
    assert result == exp
コード例 #3
0
def test_is_uploaded_file_false_json():
    """Pass."""
    value = '{"uu": "x", "filename": "x"}'
    exp = False, value
    result = is_uploaded_file(value=value)
    assert result == exp
コード例 #4
0
def test_is_uploaded_file_true():
    """Pass."""
    value = {"uuid": "x", "filename": "x"}
    exp = True, value
    result = is_uploaded_file(value=value)
    assert result == exp