From a1292adb821e6fcd913ee1155fe8d7dcd96fd5b9 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 13 Sep 2015 10:30:37 +1000 Subject: [PATCH] * Test new text and text_with_ws attributes in Token --- tests/tokens/test_token_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tokens/test_token_api.py b/tests/tokens/test_token_api.py index fe49033ba..e85feca6b 100644 --- a/tests/tokens/test_token_api.py +++ b/tests/tokens/test_token_api.py @@ -12,6 +12,8 @@ def test_strings(EN): tokens = EN(u'Give it back! He pleaded.') token = tokens[0] assert token.orth_ == 'Give' + assert token.text == 'Give' + assert token.text_with_ws == 'Give ' assert token.lower_ == 'give' assert token.shape_ == 'Xxxx' assert token.prefix_ == 'G' @@ -33,7 +35,7 @@ def test_flags(EN): def test_single_token_string(EN): tokens = EN(u'foobar') - assert tokens[0].string == 'foobar' + assert tokens[0].text == 'foobar' def test_is_properties(EN):