def test_issue859(en_tokenizer, text):
    """Test that no extra space is added in doc.text method."""
    doc = en_tokenizer(text)
    assert doc.text == text
Test that no extra space is added in doc.text method.
spacy/tests/lang/en/test_tokenizer.py