def test_ruencode_encodes_string_including_extension_using_rotunicode(self): self.assertEqual( 'ҏľȁȉń.ƭхƭ', ruencode('plain.txt', extension=True), ) self.assertEquals( 'ƭŵő.ȅхƭ.ŝȉőńŝ', ruencode('two.ext.sions', extension=True), )
def test_ruencode_encodes_string_including_extension_using_rotunicode( self): self.assertEqual( 'ҏľȁȉń.ƭхƭ', ruencode('plain.txt', extension=True), ) self.assertEquals( 'ƭŵő.ȅхƭ.ŝȉőńŝ', ruencode('two.ext.sions', extension=True), )
def test_ruencode_encodes_string_skipping_extension_using_rotunicode(self): self.assertEqual( 'ҏľȁȉń.txt', ruencode('plain.txt'), ) self.assertEqual( 'ҏľȁȉń.txt', ruencode('plain.txt', extension=False), ) self.assertEquals( 'ƭŵő.ȅхƭ.sions', ruencode('two.ext.sions'), ) self.assertEquals( 'ƭŵő.ȅхƭ.sions', ruencode('two.ext.sions', extension=False), )
def test_ruencode_encodes_string_with_no_extension_using_rotunicode(self): self.assertEqual( 'ҏľȁȉń', ruencode('plain'), ) self.assertEqual( 'ҏľȁȉń', ruencode('plain', extension=False), ) self.assertEquals( '.ȅхƭȅńŝȉőń', ruencode('.extension'), ) self.assertEquals( '.ȅхƭȅńŝȉőń', ruencode('.extension', extension=False), )