'Test the ability to delete a release.'

def test_delete(self):

    self.token_login()
    cassette_name = self.cassette_name('delete')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('github3py', 'github3.py')
        release = repository.create_release('0.8.0.pre', 'develop', '0.8.0    fake    release', 'To    be    deleted')
        assert (release is not None)
        assert (release.delete() is True)
