Following each other around and sharing the same space isn't getting along in snakes. That's competing needs access behavior. They are both trying to share the favorable spots, and getting stressed out and frustrated that they have to share. Even in a decent sized enclosure with lots of space to roam so they have the ability to choose whether or not to be around each other, you will have tiny micro climate pockets, and each snake will want to use the best one. The fact that they stopped eating is your proof positive of this. They were stressed by having to share the good spots constantly, so even if they seemed to be acting perfectly normal to a human, they were trying to say how unhappy they were to have a hoggy room mate.