Пример #1
0
    def test_maketrans_unicode__None(self):
        "#maketrans_unicode('ab', 'y\\0') retorna {97: 121, 98: None}"

        Util.maketrans_unicode('ab', 'y\0') |should| equal_to({97: 121, 98: None})
Пример #2
0
    def test_maketrans_unicode__error(self):
        "#maketrans_unicode(frm, to) lança ValueError se len(frm) != len(to)" 

        Util.maketrans_unicode('ab', 'y\0') |should| equal_to({97: 121, 98: None})
Пример #3
0
    def test_maketrans_unicode(self):
        "#maketrans_unicode('ab', 'yz') retorna {97: 121, 98: 122}"

        Util.maketrans_unicode('ab', 'yz') |should| equal_to({97: 121, 98: 122})