@slow
def test_match_encode_decode(self):
    tokenizer_enc = self.tokenizer_en_ru
    tokenizer_dec = self.tokenizer_ru_en
    targets = [["Here's a little song I wrote. Don't worry, be happy.", [2470, 39, 11, 2349, 7222, 70, 5979, 7, 8450, 1050, 13160, 5, 26, 6445, 7, 2]], ["This is it. No more. I'm done!", [132, 21, 37, 7, 1434, 86, 7, 70, 6476, 1305, 427, 2]]]
    for (src_text, tgt_input_ids) in targets:
        encoded_ids = tokenizer_enc.encode(src_text, return_tensors=None)
        self.assertListEqual(encoded_ids, tgt_input_ids)
        decoded_text = tokenizer_dec.decode(encoded_ids, skip_special_tokens=True)
        self.assertEqual(decoded_text, src_text)
@slow
def test_match_encode_decode(self):
    tokenizer_enc = self.tokenizer_en_ru
    tokenizer_dec = self.tokenizer_ru_en
    targets = [["Here's a little song I wrote. Don't worry, be happy.", [2470, 39, 11, 2349, 7222, 70, 5979, 7, 8450, 1050, 13160, 5, 26, 6445, 7, 2]], ["This is it. No more. I'm done!", [132, 21, 37, 7, 1434, 86, 7, 70, 6476, 1305, 427, 2]]]
    for (src_text, tgt_input_ids) in targets:
        encoded_ids = tokenizer_enc.encode(src_text, return_tensors=None)
        self.assertListEqual(encoded_ids, tgt_input_ids)
        decoded_text = tokenizer_dec.decode(encoded_ids, skip_special_tokens=True)
        self.assertEqual(decoded_text, src_text)