def test_refs_raises_unprocessable_exception(self):
        cassette_name = self.cassette_name('invalid_refs')
        with self.recorder.use_cassette(cassette_name):
            repository = self.gh.repository('sigmavirus24', 'github3.py')
            assert repository is not None
            with pytest.raises(exc.UnprocessableResponseBody):
                list(repository.refs('heads/develop'))
Verify github3.exceptions.UnprocessableResponseBody is raised.
dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_repos_repo.py/TestRepository.test_refs_raises_unprocessable_exception