def test_is_closed(self, state, answer):
with patch('changebot.github.github_api.IssueHandler.json', new_callable=PropertyMock) as mock_json: # noqa
mock_json.return_value = {'state': state}
assert self.issue.is_closed is answer
评论列表
文章目录