def test_case2(self): """ Check if the encrypt_text() runs as expected """ solution = Solution() self.assertEqual( solution.encrypt_text( "The wizard quickly jinxed the gnomes before they vaporized."), "- .... . .-- .. --.. .- .-. -.. --.- ..- .. -.-. -.- .-.. -.-- .--- .. -. -..- . -.. - .... . --. -. --- -- . ... -... . ..-. --- .-. . - .... . -.-- ...- .- .--. --- .-. .. --.. . -.. .-.-.- " )