'Test the ability to close an issue.'

def test_closed(self):

    self.token_login()
    cassette_name = self.cassette_name('closed')
    with self.recorder.use_cassette(cassette_name):
        issue = self.gh.issue(username='sigmavirus24', repository='github3.py', number=509)
        closed = issue.close()
    assert (closed is True)
