예제 #1
0
def test_is_deposit():
    """Test is deposit function."""
    assert is_deposit('https://cds.cern.ch/api/deposits/project/1') is True
    assert is_deposit('https://cds.cern.ch/api/record/1') is False
예제 #2
0
def test_is_deposit():
    """Test is deposit function."""
    assert is_deposit('/api/deposit/1') is True
    assert is_deposit('/record/1') is False