Movies tend to exaggerate for a dramatic effect.
Yes, racism existed, segregation existed. The situation you described didn't happen. Katherine G Johnson simply used the bathroom for whites.
Reply on news.ycombinator.com