{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/airmozilla/issues/315","labels_url":"https://api.github.com/repos/mozilla/airmozilla/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/airmozilla/issues/315/comments","events_url":"https://api.github.com/repos/mozilla/airmozilla/issues/315/events","html_url":"https://github.com/mozilla/airmozilla/pull/315","id":78605730,"number":315,"title":"fixes bug 1164936 - Removed events should not appear in the upcoming …","user":{"login":"blossomica","id":6190813,"avatar_url":"https://avatars.githubusercontent.com/u/6190813?v=3","gravatar_id":"","url":"https://api.github.com/users/blossomica","html_url":"https://github.com/blossomica","followers_url":"https://api.github.com/users/blossomica/followers","following_url":"https://api.github.com/users/blossomica/following{/other_user}","gists_url":"https://api.github.com/users/blossomica/gists{/gist_id}","starred_url":"https://api.github.com/users/blossomica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blossomica/subscriptions","organizations_url":"https://api.github.com/users/blossomica/orgs","repos_url":"https://api.github.com/users/blossomica/repos","events_url":"https://api.github.com/users/blossomica/events{/privacy}","received_events_url":"https://api.github.com/users/blossomica/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-20T16:56:32Z","updated_at":"2015-05-22T18:08:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/airmozilla/pulls/315","html_url":"https://github.com/mozilla/airmozilla/pull/315","diff_url":"https://github.com/mozilla/airmozilla/pull/315.diff","patch_url":"https://github.com/mozilla/airmozilla/pull/315.patch"},"body":"…assignments list.\r\n\r\n@peterbe - I worked on this bug too. "},"comment":{"url":"https://api.github.com/repos/mozilla/airmozilla/issues/comments/104732866","html_url":"https://github.com/mozilla/airmozilla/pull/315#issuecomment-104732866","issue_url":"https://api.github.com/repos/mozilla/airmozilla/issues/315","id":104732866,"user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T18:08:18Z","updated_at":"2015-05-22T18:08:18Z","body":"So, another thing you need to do is prove this change with a test. Look at these lines:\r\nhttps://github.com/blossomica/airmozilla/blob/bug1164936-Removed-events-should-not-appear-in-the-upcoming-assignments-list/airmozilla/manage/tests/views/test_eventassignment.py#L77-L80\r\n\r\nIt creates another event and on line 88 it asserts that it's in the `response.content`.\r\n\r\nChange that event to `event.status = Event.STATUS_REMOVED` then do what's done on line 86 again and this time assert that 'Other title' is NOT in the `response.content`.\r\n\r\nYou'll need to change line 77 to something like:\r\n```\r\nother_event = Event.objects.create(....\r\n```\r\nSo you can change its status later. "}}