{"action":"closed","issue":{"url":"https://api.github.com/repos/cdown/yturl/issues/10","labels_url":"https://api.github.com/repos/cdown/yturl/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/cdown/yturl/issues/10/comments","events_url":"https://api.github.com/repos/cdown/yturl/issues/10/events","html_url":"https://github.com/cdown/yturl/issues/10","id":105021510,"number":10,"title":"Make all args that require output from other functions optional","user":{"login":"cdown","id":660663,"avatar_url":"https://avatars.githubusercontent.com/u/660663?v=3","gravatar_id":"","url":"https://api.github.com/users/cdown","html_url":"https://github.com/cdown","followers_url":"https://api.github.com/users/cdown/followers","following_url":"https://api.github.com/users/cdown/following{/other_user}","gists_url":"https://api.github.com/users/cdown/gists{/gist_id}","starred_url":"https://api.github.com/users/cdown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdown/subscriptions","organizations_url":"https://api.github.com/users/cdown/orgs","repos_url":"https://api.github.com/users/cdown/repos","events_url":"https://api.github.com/users/cdown/events{/privacy}","received_events_url":"https://api.github.com/users/cdown/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-05T11:21:20Z","updated_at":"2015-09-05T14:43:34Z","closed_at":"2015-09-05T14:43:34Z","body":"For example, we have to do this in test cases because it's always necessary to do one before the other:\r\n\r\n```python\r\n@parameterized([\r\n    (46, []),\r\n    (38, [1, 2, 3]),\r\n])\r\ndef test_most_similar_available_itag_none(input_itag, available_itags):\r\n    itags_by_similarity = yturl.itags_by_similarity(input_itag)\r\n    with assert_raises(yturl.NoLocallyKnownItagsAvailableError):\r\n        yturl.most_similar_available_itag(itags_by_similarity, available_itags)\r\n```\r\n\r\nWe should make itags_by_similarity default to None in most_similar_available_itag, and run itags_by_similarity inside if another value is not passed. This allows us to be flexible in either way."}}