def METHOD_NAME(self, data):
    """
    Call management command with `data` as contents of input file.
    """
    with patch(
            _COMMAND_PATH + '.py3_open',
            mock_open(read_data=data)
    ) as _:
        call_command(
            self.command,
            uid_mapping='./foo.json',
            saml_provider_slug=self.provider_slug
        )