Driving Test Canada Test 2 - In what situation are you allowed to cross a solid single or double line?

In what situation are you allowed to cross a solid single or double line?