def test_filter_issues_by_combination(self):
     """
     Test filter issues by combination of type, priority, status, assignee, and date
     """
     expected_result_issue = [{'status': 'Resolved', 'issues_url': '#', 'assignee': 'Albert Chieu', 'title': 'Ajax to filter issues by status', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b313cc54c8f455f358dc1dda9e302d95?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-05-2013', 'priority': 'Major'}]
     self.assertEqual(bitfilter.filter_issues({'type':'task', 'priority':'major', 'status':'resolved', 'assignee':'Albert Chieu'}, self.all_parsed_issues), expected_result_issue)        
 def test_filter_issues_by_priority(self):
     """
     Test to filter issues by priority
     """
     expected_result_issue = [{'status': 'On hold', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Implement post new issue', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-09-2013', 'priority': 'Major'}, {'status': 'New', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Render the issue comments on the reports', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'New', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Write a parser method and tally method for issue comments data', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'New', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Create method needed for getting data for issue comments', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'New', 'issues_url': '#', 'assignee': 'David Leonard', 'title': 'Unit test for methods module', 'assignee_avatar': 'https://secure.gravatar.com/avatar/1aee4f304d9836daa9a69b7e92cdd6ec?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'Invalid', 'issues_url': '#', 'assignee': '', 'title': 'Functional test to get repositories', 'assignee_avatar': '', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'Invalid', 'issues_url': '#', 'assignee': '', 'title': 'Functional test to filter issues by type', 'assignee_avatar': '', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Albert Chieu', 'title': 'Fix show more button for filters', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b313cc54c8f455f358dc1dda9e302d95?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Parse changeset is weird', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-04-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'David Leonard', 'title': 'D3 bar graph for issue data', 'assignee_avatar': 'https://secure.gravatar.com/avatar/1aee4f304d9836daa9a69b7e92cdd6ec?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-04-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Albert Chieu', 'title': 'Ajax to filter issues by status', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b313cc54c8f455f358dc1dda9e302d95?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-05-2013', 'priority': 'Major'}, {'status': 'On hold', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Show detailed issue data in issue tracker', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-09-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Fix bug with repo having 1 commit', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-05-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Fix report bugs', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-05-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Ajax to filter issues by type', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Task', 'date': '12-05-2013', 'priority': 'Major'}]
     self.assertEqual(bitfilter.filter_issues({'priority':'major'}, self.all_parsed_issues), expected_result_issue)
 def test_filter_issues_by_status(self):
     """
     Test to filter issues by status
     """
     expected_result_issue = [{'status': 'Invalid', 'issues_url': '#', 'assignee': '', 'title': 'Functional test to get repositories', 'assignee_avatar': '', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'Invalid', 'issues_url': '#', 'assignee': '', 'title': 'Functional test to filter issues by type', 'assignee_avatar': '', 'type': 'Task', 'date': '12-06-2013', 'priority': 'Major'}]
     self.assertEqual(bitfilter.filter_issues({'status':'invalid'}, self.all_parsed_issues), expected_result_issue)
 def test_filter_issues_by_type(self):
     """
     Test to filter issues by type
     """
     expected_result_issue = [{'status': 'Resolved', 'issues_url': '#', 'assignee': 'Albert Chieu', 'title': 'Fix show more button for filters', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b313cc54c8f455f358dc1dda9e302d95?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-06-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Parse changeset is weird', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-04-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Fix bug with repo having 1 commit', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-05-2013', 'priority': 'Major'}, {'status': 'Resolved', 'issues_url': '#', 'assignee': 'Jorge Yau', 'title': 'Fix report bugs', 'assignee_avatar': 'https://secure.gravatar.com/avatar/b0cff0fe6417101f526780df0af3a56d?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F386386f55761%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32', 'type': 'Bug', 'date': '12-05-2013', 'priority': 'Major'}]
     self.assertEqual(bitfilter.filter_issues({'type':'bug'}, self.all_parsed_issues), expected_result_issue)