2017-01-10 18:24:10 +00:00
|
|
|
# coding: utf-8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2017-01-12 21:00:37 +00:00
|
|
|
from ..util import get_doc
|
2016-11-02 22:40:11 +00:00
|
|
|
|
2017-01-10 18:24:10 +00:00
|
|
|
|
2017-01-12 21:00:37 +00:00
|
|
|
def test_issue599(en_vocab):
|
|
|
|
doc = get_doc(en_vocab)
|
2016-11-02 22:40:11 +00:00
|
|
|
doc.is_tagged = True
|
|
|
|
doc.is_parsed = True
|
2017-01-12 21:00:37 +00:00
|
|
|
doc2 = get_doc(doc.vocab)
|
|
|
|
doc2.from_bytes(doc.to_bytes())
|
2016-11-02 22:40:11 +00:00
|
|
|
assert doc2.is_parsed
|