@pytest.mark.parametrize(u'text1,text2', [(u'phantom', u'opera')])
def test_vocab_lexeme_hash(en_vocab, text1, text2):
 lex1 = en_vocab[text1]
 lex2 = en_vocab[text2]
 lexes = {lex1: lex1, lex2: lex2}
 assert (lexes[lex1].orth_ == text1)
 assert (lexes[lex2].orth_ == text2)

@ pytest . mark . parametrize ( u'text1,text2' , [ ( u'phantom' , u'opera' ) ] ) def test_vocab_lexeme_hash ( en_vocab , text1 , text2 ) : lex1 = en_vocab [ text1 ] lex2 = en_vocab [ text2 ] lexes = { lex1 : lex1 , lex2 : lex2 } assert ( lexes [ lex1 ] . orth_ == text1 ) assert ( lexes [ lex2 ] . orth_ == text2 )
test that lexemes are hashable .