def test_decode_text_extract_rus(self): original_text_words = self.original_text.split() original_extract = ' '.join( original_text_words[:len(original_text_words) // 2]) encoded_extract = decode.encode_text(original_extract, self.code) decoded_extract = decode.decode_text(encoded_extract, self.language) self.assertEqual(original_extract, decoded_extract)
def test_decode_text_extract_rus(self): original_text_words = self.original_text.split() original_extract = ' '.join( original_text_words[: len(original_text_words) // 2]) encoded_extract = decode.encode_text(original_extract, self.code) decoded_extract = decode.decode_text(encoded_extract, self.language) self.assertEqual(original_extract, decoded_extract)
def test_decode_text_same_rus(self): encoded_text = decode.encode_text(self.original_text, self.code) decoded_text = decode.decode_text(encoded_text, self.language) self.assertEqual(self.original_text, decoded_text)