Yes, exactly how you assign those assumptions to humans despite having no way of actually knowing that they have rich internal lives comparable to your own. It is the ability to simulate a mind foreign to your own and anticipate how it would respond to circumstances.
We don’t have to assume with humans. We can introspect our emotions and discuss them with others. Though we can’t be precise, we can understand and distinguish concepts like shame vs humiliation which appear to be (effectively) universal to the human experience.
That is a world apart from seeing an octopus react to something and assuming that anything resembling emotions are involved at all.