def test_licenses(self):
        """Test the ability to retrieve open source licenses."""

        cassette_name = self.cassette_name('licenses')
        with self.recorder.use_cassette(cassette_name):
            licenses = list(self.gh.licenses())
            assert len(licenses) > 0

            license = licenses[0]
            assert isinstance(license, github3.licenses.License)
dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_github.py/TestGitHub.test_licenses/original