@pytest.mark.parametrize(u'text1,prob1,text2,prob2', [(u'NOUN', (-1), u'opera', (-2))])
def test_vocab_lexeme_lt(en_vocab, text1, text2, prob1, prob2):
 lex1 = en_vocab[text1]
 lex1.prob = prob1
 lex2 = en_vocab[text2]
 lex2.prob = prob2
 assert (lex1 < lex2)
 assert (lex2 > lex1)

@ pytest . mark . parametrize ( u'text1,prob1,text2,prob2' , [ ( u'NOUN' , ( - 1 ) , u'opera' , ( - 2 ) ) ] ) def test_vocab_lexeme_lt ( en_vocab , text1 , text2 , prob1 , prob2 ) : lex1 = en_vocab [ text1 ] lex1 . prob = prob1 lex2 = en_vocab [ text2 ] lex2 . prob = prob2 assert ( lex1 < lex2 ) assert ( lex2 > lex1 )
more frequent is l .