I think you don't need to assert this: this is not handled by your tested function at all