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

def test_branches(self):

    cassette_name = self.cassette_name('branches')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        assert (repository is not None)
        for branch in repository.branches():
            assert isinstance(branch, github3.repos.branch.Branch)
