def METHOD_NAME(self):
    tokenizer = self.tokenizer_class.from_pretrained("allegro/herbert-base-cased")
    text = tokenizer.encode("konstruowanie sekwencji", add_special_tokens=False)
    text_2 = tokenizer.encode("konstruowanie wielu sekwencji", add_special_tokens=False)
    encoded_sentence = tokenizer.build_inputs_with_special_tokens(text)
    encoded_pair = tokenizer.build_inputs_with_special_tokens(text, text_2)
    assert encoded_sentence == [0] + text + [2]
    assert encoded_pair == [0] + text + [2] + text_2 + [2]