Add testcases for github_issue (#26309)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-08-31 00:20:45 +05:30 committed by Chris Alfonso
parent c9b74a3af3
commit a2c8481395
4 changed files with 77 additions and 1 deletions

View file

@ -103,7 +103,7 @@ def main():
result = dict()
gh_obj = github3.issue(organization, repo, issue)
if isinstance(gh_obj, github3.null.NullObject):
if gh_obj is None:
module.fail_json(msg="Failed to get details about issue specified. "
"Please check organization, repo and issue "
"details and try again.")