An obsessive-compulsive person who was told that everyone was required to wear shoes at all times in the house and not to vacuum for a week would be experiencing what therapy procedures
They would be doing Systematic Desensitization. This is when they are exposing themselves to their fears without doing the compulsions to try and gradually overcome the fear altogether.