'Test the ability to upload an asset to a release with a label.'

def test_upload_asset_with_a_label(self):

    self.token_login()
    cassette_name = self.cassette_name('create_release')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('itsmemattchung', 'github3.py')
        release = repository.create_release('0.8.0.pre', 'develop', '0.8.0    fake    release    with    upload', 'To    be    deleted')
    cassette_name = self.cassette_name('upload_asset_with_a_label')
    with self.recorder.use_cassette(cassette_name, **self.betamax_simple_body):
        file_contents = 'Hello    World'
        asset = release.upload_asset('text/plain', 'test_repos_release.py', file_contents, 'test-label')
        release.delete()
    assert isinstance(asset, github3.repos.release.Asset)
