def METHOD_NAME(self):
    """
    Verify that an error is thrown when both site_id and the domain name are provided.
    """
    with pytest.raises(CommandError) as error:
        call_command(self.command, 'domain.com', '--site-id', '1')
    assert 'not allowed with argument' in str(error.value)