def test_update(self):
        """Show that a user can update the reference."""

        self.instance.update('fakesha', True)
        try:
            self.session.patch.assert_called_once_with(
                reference_url_for(),
                data='{"force": true, "sha": "fakesha"}'
            )
        except __HOLE__:
            self.session.patch.assert_called_once_with(
                reference_url_for(),
                data='{"sha": "fakesha", "force": true}'
            )
dataset/ETHPy150Open sigmavirus24/github3.py/tests/unit/test_git.py/TestReference.test_update