@@ -0,0 +1,850 @@
+# coding: utf-8%0Afrom __future__ import unicode_literals%0A%0Aimport pytest%0Aimport numpy%0Afrom spacy.attrs import IS_ALPHA, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_TITLE, IS_STOP%0Afrom spacy.symbols import VERB%0Afrom spacy.vocab import Vocab%0Afrom spacy.tokens import Doc%0A%0A@pytest.fixture%0Adef i_has(en_tokenizer):%0A    doc = en_tokenizer(%22I has%22)%0A    doc%5B0%5D.tag_ = %22PRP%22%0A    doc%5B1%5D.tag_ = %22VBZ%22%0A    return doc%0A%0Adef test_token_morph_id(i_has):%0A    assert i_has%5B0%5D.morph.id%0A    assert i_has%5B1%5D.morph.id != 0%0A    assert i_has%5B0%5D.morph.id != i_has%5B1%5D.morph.id%0A%0Adef test_morph_props(i_has):%0A    assert i_has%5B0%5D.morph.pron_type == i_has.vocab.strings%5B%22PronType_prs%22%5D%0A    assert i_has%5B1%5D.morph.pron_type == 0%0A%0A%0Adef test_morph_iter(i_has):%0A    assert list(i_has%5B0%5D.morph) == %5B%22PronType_prs%22%5D%0A    assert list(i_has%5B1%5D.morph) == %5B%22Number_sing%22, %22Person_three%22, %22VerbForm_fin%22%5D%0A

Add test for morph analysis