def METHOD_NAME():
    """Test error handling in Activity.used()"""
    a = Activity(name="Foobarbat", description="Apply foo to a bar and a bat")
    pytest.raises(
        SynapseMalformedEntityError,
        a.used,
        ["syn12345", "http://google.com"],
        url="http://amazon.com",
    )
    pytest.raises(
        SynapseMalformedEntityError, a.used, "syn12345", url="http://amazon.com"
    )
    pytest.raises(
        SynapseMalformedEntityError, a.used, "http://amazon.com", targetVersion=1
    )