'Test the ability to replace labels from an issue.'

def test_replace_labels(self):

    self.token_login()
    cassette_name = self.cassette_name('replace_labels')
    with self.recorder.use_cassette(cassette_name):
        issue = self.gh.issue(username='sigmavirus24', repository='github3.py', number=509)
        labels = ['in    progress', 'easy']
        replaced_labels = issue.replace_labels(labels)
    assert (len(replaced_labels) == len(labels))
    for replaced_label in replaced_labels:
        assert isinstance(replaced_label, github3.issues.issue.Label)
