'Test the ability to retrieve protected branches in a repository.'

def test_protected_branches(self):

    cassette_name = self.cassette_name('branches_protected')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        assert (repository is not None)
        assert all(((b.protection['enabled'] is True) for b in repository.branches(protected=True)))
