def METHOD_NAME(self):
    """
    Test management command raises CommandError without '--site-domain' argument.
    """
    with pytest.raises(CommandError):
        call_command(
            "populate_created_on_site_user_attribute",
            "--user", self.user_ids,
            "--activation-keys", self.activation_keys
        )