def test_patch(self):
        """Show that a user can get the patch from a PR."""
        cassette_name = self.cassette_name('patch')
        with self.recorder.use_cassette(cassette_name):
            p = self.get_pull_request()
            patch = p.patch()
            assert isinstance(patch, bytes)
            assert len(patch) > 0
dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_pulls.py/TestPullRequest.test_patch/original